Skip to content

Commit

Permalink
Fix newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
Gusted committed Feb 26, 2022
1 parent 81d2ced commit cec21e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/charset/escape.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ func EscapeControlReader(text io.Reader, output io.Writer) (escaped EscapeStatus
lineHasBIDI := false
lineHasRTLScript := false
lineHasLTRScript := false

readingloop:
for err == nil {
n, err = text.Read(buf[readStart:])
Expand All @@ -78,7 +79,6 @@ readingloop:

for i < len(bs) {
r, size := utf8.DecodeRune(bs[i:])

// Now handle the codepoints
switch {
case r == utf8.RuneError:
Expand Down

0 comments on commit cec21e6

Please sign in to comment.