From e88886243f2282e913d44006916397e076a76425 Mon Sep 17 00:00:00 2001 From: bptato Date: Sat, 7 Sep 2024 19:05:03 +0200 Subject: md2html: code, pre, inline fixes --- src/utils/twtstr.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utils/twtstr.nim') diff --git a/src/utils/twtstr.nim b/src/utils/twtstr.nim index 3b10cf8c..0d65be50 100644 --- a/src/utils/twtstr.nim +++ b/src/utils/twtstr.nim @@ -124,7 +124,7 @@ func endsWithIgnoreCase*(s1, s2: string): bool = return false return true -func skipBlanks*(buf: string; at: int): int = +func skipBlanks*(buf: openArray[char]; at: int): int = result = at while result < buf.len and buf[result] in AsciiWhitespace: inc result @@ -386,7 +386,7 @@ func percentDecode*(input: string; si = 0): string = i += 2 inc i -func htmlEscape*(s: string): string = +func htmlEscape*(s: openArray[char]): string = result = "" for c in s: case c -- cgit 1.4.1-2-gfad0