Merge pull request #83 from tomidery/last-character-of-file-is-deleted
Fabio Cevasco h3rald@h3rald.com
Mon, 21 Jun 2021 21:08:22 +0200
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/hastyscribepkg/markdown.nim
→
src/hastyscribepkg/markdown.nim
@@ -164,7 +164,7 @@ else:
# incomplete metadata, remove the whole pandoc section to not confuse discount contents = contents[e-1 .. ^1] var str = cstring(contents) - var mmiot = mkd_string(str, cint(str.len-1), flags) + var mmiot = mkd_string(str, cint(str.len), flags) if valid_metadata: data.title = $mkd_doc_title(mmiot) data.author = $mkd_doc_author(mmiot)