From 6c5772ab9d60be5edbe7d39e2e7d85638f9cb06e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Mon, 24 Jun 2024 09:46:14 -0400 Subject: [PATCH] Tweak how quotations work so we keep our old markers --- zimwiki_txt_to_logseq_md.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/zimwiki_txt_to_logseq_md.py b/zimwiki_txt_to_logseq_md.py index 6056f3a..cd90fe3 100644 --- a/zimwiki_txt_to_logseq_md.py +++ b/zimwiki_txt_to_logseq_md.py @@ -35,8 +35,10 @@ def rewrite_file(filepath): in_block = True else: in_block = False - continue - if (i > 5 and 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 == ""): continue