Commentary
This commit is contained in:
@@ -407,7 +407,9 @@ func highlightStreamPosition2(stream: string, position: int): string =
|
||||
|
||||
let beforeNewline =
|
||||
case (startIndex, ch):
|
||||
# Always print newline for newline at the stream begin
|
||||
of (-1, '\n'): "\n"
|
||||
# Don't insert a newline when the character is a newline between newlines
|
||||
of (_, '\n'): ""
|
||||
else: "\n"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user