diff options
author | Yee Cheng Chin <ychin.git@gmail.com> | 2022-10-20 03:22:46 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-20 03:22:46 -0700 |
commit | 10ab7489ebb2bcbc7c1b5360921978c1ca2d0a4b (patch) | |
tree | 9e9bcad53c9bf1956c169d6e7732e04ceef2a8fd /test/functional/lua/help_spec.lua | |
parent | 3b0777cfa5fd9f2e35abeb24cb87b79f76b39934 (diff) | |
download | rneovim-10ab7489ebb2bcbc7c1b5360921978c1ca2d0a4b.tar.gz rneovim-10ab7489ebb2bcbc7c1b5360921978c1ca2d0a4b.tar.bz2 rneovim-10ab7489ebb2bcbc7c1b5360921978c1ca2d0a4b.zip |
fix(docs-html): misaligned tabs after conceal #20690
Problem:
`gen_help_html.lua` does not properly handle tab characters after
"concealed" text (tags, taglinks, codespans). This causes misaligned
layout in "old" (preformatted) docs.
For text like `*tag*`, |tag_link|, and `code_span`, Vim hides the "*",
"|", "`" characters, but Vim still counts those characters for "virtual
column" when a tab character follows it. So if you have a tag of say
6 characters long, those two concealed character would lead to the tab
character after it start at column 8. gen_help_html.lua doesn't account
for that which leads to formatting flaws in the generated output.
Solution:
Add two spaces after concealed nodes that are followed by a tab char.
Diffstat (limited to 'test/functional/lua/help_spec.lua')
0 files changed, 0 insertions, 0 deletions