neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit ebba7ae095d9bb800c43188df848ac4f4733d167
parent 2f4792943aa92223fadd472f20449cd13707ff7a
Author: gusain71 <115005392+gusain71@users.noreply.github.com>
Date:   Tue, 14 May 2024 13:23:43 +0200

docs(gen_help_html.lua): wrap legacy help at word-boundary #28678

Problem:
On the page: https://neovim.io/doc/user/dev_vimpatch.html
The links extend beyond the container and thus end up behind the navigation to the right.

Solution:
Add these lines to get_help_html.lua:

    white-space: normal;
    word-wrap: break-word;
Diffstat:
Mscripts/gen_help_html.lua | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/scripts/gen_help_html.lua b/scripts/gen_help_html.lua @@ -1088,13 +1088,13 @@ local function gen_css(fname) padding-bottom: 10px; /* Tabs are used for alignment in old docs, so we must match Vim's 8-char expectation. */ tab-size: 8; - white-space: pre; + white-space: normal; font-size: 16px; font-family: ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace; + word-wrap: break-word; } .old-help-para pre { - /* All text in .old-help-para is formatted as "white-space:pre" so text following <pre> is - already visually separated by the linebreak. */ + /* Text following <pre> is already visually separated by the linebreak. */ margin-bottom: 0; }