diff options
author | meles5 <meles5@web.de> | 2015-11-20 21:12:06 +0100 |
---|---|---|
committer | meles5 <meles5@web.de> | 2015-11-20 21:12:06 +0100 |
commit | d9f1699a3bdca5edaa223a4dcfc1660eaf9affa8 (patch) | |
tree | 459dc6b9db144390374971d5acdaef02aa1bd320 /scripts/asciidoc2html.py | |
parent | af875f4b8f3b9ccc784601749de99ffd80e17661 (diff) | |
download | qutebrowser-d9f1699a3bdca5edaa223a4dcfc1660eaf9affa8.tar.gz qutebrowser-d9f1699a3bdca5edaa223a4dcfc1660eaf9affa8.zip |
Improved website titles
Diffstat (limited to 'scripts/asciidoc2html.py')
-rwxr-xr-x | scripts/asciidoc2html.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/asciidoc2html.py b/scripts/asciidoc2html.py index 3e1b78ae3..b63af782d 100755 --- a/scripts/asciidoc2html.py +++ b/scripts/asciidoc2html.py @@ -134,11 +134,11 @@ class AsciiDoc: if re.match(r'^=+$', line): line = line.replace('=', '-') found_title = True - title = last_line + "=" * (len(last_line) - 1) + title = last_line[:-1] + " | qutebrowser\n" + "=" * (len(last_line[:-1] + " | qutebrowser") - 1) elif re.match(r'^= .+', line): line = '==' + line[1:] found_title = True - title = last_line + "=" * (len(last_line) - 1) + title = last_line[:-1] + " | qutebrowser\n" + "=" * (len(last_line[:-1] + " | qutebrowser") - 1) if not hidden: outfp.write(line.replace(".asciidoc[", ".html[")) |