From e82dad535bd0e55427841a1d0b56a1194d0be0c6 Mon Sep 17 00:00:00 2001 From: bptato Date: Tue, 28 Jan 2025 19:48:44 +0100 Subject: loader: fix missing newline in downloads --- src/server/loader.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/server') diff --git a/src/server/loader.nim b/src/server/loader.nim index 753c3161..2faadd3a 100644 --- a/src/server/loader.nim +++ b/src/server/loader.nim @@ -1125,7 +1125,9 @@ proc formatDuration(dur: Duration): string = result &= $parts[it] proc makeProgress(it: DownloadItem; now: Time): string = - result = " " + result = it.displayUrl.htmlEscape() & '\n' + result &= " -> " & it.path & '\n' + result &= " " #TODO implement progress element and use that var rat = 0u64 if it.contentLen == uint64.high and it.sent > 0 and it.output == nil: @@ -1205,8 +1207,6 @@ proc loadDownload(ctx: LoaderContext; handle: InputHandle; request: Request) = let now = getTime() var refresh = false for i, it in ctx.downloadList.mpairs: - body &= it.displayUrl.htmlEscape() - body &= "\n --> " & it.path if it.output != nil: it.sent = it.output.bytesSent if it.output.stream == nil: -- cgit