~comcloudway/builds.sr.ht

7957b94c4d21d9b26113fb3d772fbbb4be9f864a — Drew DeVault 5 years ago 431a6d1
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):