Fix bulleting around mock quotations

This commit is contained in:
benjamin melançon 2024-06-24 11:39:58 -04:00
parent 1fc7fe6e90
commit 5f848df8a1

View file

@ -34,12 +34,12 @@ def rewrite_file(filepath):
# w.write("type:: postable-draft\n")
if (i > 5 and line == "\"\"\"\n"):
if (in_block == False):
# Start our self-styled quotation block with a bullet.
line = "- " + line
in_block = True
else:
in_block = False
# Close our self-styled quotation block without a bullet.
w.write(line)
continue
elif (i > 5 and in_block == False):
test = line.strip()
if (test == ""):