Seperated into two lines
This commit is contained in:
parent
d9f1699a3b
commit
b9240924d2
@ -134,11 +134,13 @@ class AsciiDoc:
|
|||||||
if re.match(r'^=+$', line):
|
if re.match(r'^=+$', line):
|
||||||
line = line.replace('=', '-')
|
line = line.replace('=', '-')
|
||||||
found_title = True
|
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):
|
elif re.match(r'^= .+', line):
|
||||||
line = '==' + line[1:]
|
line = '==' + line[1:]
|
||||||
found_title = True
|
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:
|
if not hidden:
|
||||||
outfp.write(line.replace(".asciidoc[", ".html["))
|
outfp.write(line.replace(".asciidoc[", ".html["))
|
||||||
|
Loading…
Reference in New Issue
Block a user