line endings in windows are normalized for chronos output

This commit is contained in:
Eric 2023-11-29 10:32:00 +11:00
parent 075e89de2b
commit 47e4783b14
No known key found for this signature in database
1 changed files with 1 additions and 4 deletions

View File

@ -46,10 +46,7 @@ proc waitUntilOutput*(node: NodeProcess, output: string, started: Future[void])
let stream = node.process.stdOutStream
try:
let lineEnding = when defined(windows): "\r\n"
else: "\n"
while(let line = await stream.readLine(0, lineEnding); line != ""):
while(let line = await stream.readLine(0, "\n"); line != ""):
if node.debug:
echo line