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;
This commit is contained in:
gusain71 2024-05-14 13:23:43 +02:00 committed by GitHub
parent 2f4792943a
commit ebba7ae095
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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