Use readable escape sequences (#17241)

This commit is contained in:
Clyybber 2021-03-03 07:15:07 +01:00 • committed by GitHub
commit 507873be25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 68 additions and 68 deletions

View file

@ -147,11 +147,11 @@ proc llStreamReadLine*(s: PLLStream, line: var string): bool =
of llsString:
while s.rd < s.s.len:
case s.s[s.rd]
of '\x0D':
of '\r':
inc(s.rd)
if s.s[s.rd] == '\x0A': inc(s.rd)
if s.s[s.rd] == '\n': inc(s.rd)
break
of '\x0A':
of '\n':
inc(s.rd)
break
else: