Improved website titles

This commit is contained in:
meles5 2015-11-20 21:12:06 +01:00
parent af875f4b8f
commit d9f1699a3b

View File

@ -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["))