From 5f848df8a16414255597c8060d7aa63e8670a024 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Mon, 24 Jun 2024 11:39:58 -0400 Subject: [PATCH] Fix bulleting around mock quotations --- zimwiki_txt_to_logseq_md.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zimwiki_txt_to_logseq_md.py b/zimwiki_txt_to_logseq_md.py index 41501ef..c0170cc 100644 --- a/zimwiki_txt_to_logseq_md.py +++ b/zimwiki_txt_to_logseq_md.py @@ -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 == ""):