Skip to content

Commit

Permalink
topdf.py: fix missing \n at the end and then # Notes merges with the …
Browse files Browse the repository at this point in the history
…last line
  • Loading branch information
mmagnus committed Jul 21, 2022
1 parent fd43fce commit b05350c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engine/topdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit b05350c

Please sign in to comment.