kdheepak / panvimdoc

Write documentation in pandoc markdown. Generate documentation in vimdoc.
https://kdheepak.com/panvimdoc
MIT License
263 stars 15 forks source link

bug: emoji at end of line removes space on the next line #55

Open mikesmithgh opened 1 year ago

mikesmithgh commented 1 year ago

If you have an emoji at the end of a line, for example :tada: and the demojify flag set, then the next line removes the first space it encounters.

Steps to reproduce

  1. Create README-test.md
    
    hi 🎉

Missing> <space on this line

2. Run
```sh
./panvimdoc.sh --project-name test-tada --input-file "README-test.md" --vim-version "NVIM v0.7+" --toc true --demojify true --dedup-subheadings false
  1. Open doc/test-tada.txt
    
    *test-tada.txt*           For NVIM v0.7+          Last change: 2023 October 04

============================================================================== Table of Contents test-tada-table-of-contents

hi

Missing><space on this line

Generated by panvimdoc https://github.com/kdheepak/panvimdoc

vim:tw=78:ts=8:noet:ft=help:norl:


### Actual

Missing><space on this line


### Expected

Missing> <space on this line

kdheepak commented 1 year ago

Hmm. That’s annoying.

I’m wondering if I should use a non lua dependency for this instead.