From b9240924d27a3d32898e45414b4b5d6942e53449 Mon Sep 17 00:00:00 2001 From: meles5 Date: Fri, 20 Nov 2015 21:39:17 +0100 Subject: [PATCH] Seperated into two lines --- scripts/asciidoc2html.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/asciidoc2html.py b/scripts/asciidoc2html.py index b63af782d..e594ce58c 100755 --- a/scripts/asciidoc2html.py +++ b/scripts/asciidoc2html.py @@ -134,11 +134,13 @@ class AsciiDoc: if re.match(r'^=+$', line): line = line.replace('=', '-') found_title = True - title = last_line[:-1] + " | qutebrowser\n" + "=" * (len(last_line[:-1] + " | qutebrowser") - 1) + title = last_line.rstrip('\n') + " | qutebrowser\n" + title += "=" * (len(title) - 1) elif re.match(r'^= .+', line): line = '==' + line[1:] found_title = True - title = last_line[:-1] + " | qutebrowser\n" + "=" * (len(last_line[:-1] + " | qutebrowser") - 1) + title = last_line.rstrip('\n') + " | qutebrowser\n" + title += "=" * (len(title) - 1) if not hidden: outfp.write(line.replace(".asciidoc[", ".html["))