Fix line numbers in files with \r
1 files changed, 1 insertions(+), 1 deletions(-) M buildsrht/blueprints/jobs.py
M buildsrht/blueprints/jobs.py => buildsrht/blueprints/jobs.py +1 -1
@@ 235,7 235,7 @@ def logify(text, task, log_url): + Markup('</pre>')) linenos = Markup('<pre>\n\n\n') else: - nlines = text.encode().count(b'\n') + nlines = len(text.splitlines()) text = Markup('<pre>') + escape(text) + Markup('</pre>') linenos = Markup('<pre>') for no in range(1, nlines + 1):