Commit 0853afc9 authored by Carl Friedrich Bolz-Tereick's avatar Carl Friedrich Bolz-Tereick
Browse files

another small tweak: start translating newlines only after the \r-free prefix

--HG--
branch : py3.7
parent 004cee090b7a
......@@ -137,7 +137,8 @@ class W_IncrementalNewlineDecoder(W_Root):
assert rpos >= 0
# Translate!
builder = StringBuilder(len(output))
i = 0
builder.append_slice(output, 0, rpos)
i = rpos
while i < len(output):
c = output[i]
i += 1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment