From b05350c25bec8f26429f08ac0fb82beb840f9cd1 Mon Sep 17 00:00:00 2001 From: mmagnus Date: Thu, 21 Jul 2022 12:53:37 +0200 Subject: [PATCH] topdf.py: fix missing \n at the end and then # Notes merges with the last line --- engine/topdf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/topdf.py b/engine/topdf.py index 317c513..1ec7f67 100644 --- a/engine/topdf.py +++ b/engine/topdf.py @@ -146,8 +146,8 @@ def isbright(image, dim=10, thresh=0.5): md = md.replace('!!!!)', '\n') # ugly #md = md.replace('(imgs/', '(' + PATH_TO_MD + '/imgs/') - - md += '\n# Notes\n\n' + # \n to fix missing \n at the end and then # Notes merges with the last line + md += '\n\n\n# Notes\n\n' md += '|\n\n' * 15 + '\n' # add an empty page tmp = '/tmp/print.md' #tmp = PATH_TO_MD + sep + '/tmp.md'