diff options
author | Jongwook Choi <wookayin@gmail.com> | 2024-05-14 23:34:14 -0400 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2024-05-16 09:01:05 +0200 |
commit | 174da7fe687bd3bf2f6874620e708db24160c4d7 (patch) | |
tree | 96d006a05e03d8cc204893400aec58dfbe02da66 /runtime/lua/vim/diagnostic.lua | |
parent | 618e34ca095739935ac436fec58bb2a223ea3dc1 (diff) | |
download | rneovim-174da7fe687bd3bf2f6874620e708db24160c4d7.tar.gz rneovim-174da7fe687bd3bf2f6874620e708db24160c4d7.tar.bz2 rneovim-174da7fe687bd3bf2f6874620e708db24160c4d7.zip |
docs(gen_help_html.lua): fix broken pre text, and handle linewrap
Problem:
- Since #28678, pre-formatted text in the online documentation do not
render whitespaces correctly: should be pre-like text, but shown like
normal paragraph (see #28754).
- Code blocks with long lines should not be wrapped (e.g. see
|dev-vimpatch-list-management|).
Solution:
- Use `white-space: pre-wrap`. Compared to `white-space: pre`, this
option will make long lines including a very long URL wrapped.
This properly fixes #28754 and #28678.
- Use horizontal scrollbar for the code blocks that are horizontally too
long, instead of wrapping text. This will make the code easy to read
while the pre-text block not interfering with the navigation bar.
Diffstat (limited to 'runtime/lua/vim/diagnostic.lua')
0 files changed, 0 insertions, 0 deletions