neovim / tree-sitter-vimdoc

Tree-sitter parser for Vim help files

Repository from Github https://github.comneovim/tree-sitter-vimdocRepository from Github https://github.comneovim/tree-sitter-vimdoc

Indent and text alignment not properly showing in html

jamesNWT opened this issue · comments

I was reading the man page for text formatting and came across this peculiarity:

Image

I found it a bit strange that the text describes "the first line" and "the second line" as being indented, but the actual formatting of the text has no indent.

I checked the man page in neovim and sure enough, these lines are supposed to be indented:

Image

Now I've gone and also had a look at the text alignment section, which I previously skimmed, and they're also not showing up with their proper alignment in the html.

Not sure yet if this issue effects any other man pages besides just this one small case.

Because those indented lines are mis-using the ~ "column heading" syntax. Fixed in neovim/neovim#35138 , though that's not merged yet, I'm going to close this meanwhile.

Note that on the website the tabs will be spaces in any case.