Seperated into two lines

This commit is contained in:
meles5 2015-11-20 21:39:17 +01:00
parent d9f1699a3b
commit b9240924d2

View File

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