aboutsummaryrefslogtreecommitdiff
path: root/scripts/gen_help_html.lua
diff options
context:
space:
mode:
authorgusain71 <115005392+gusain71@users.noreply.github.com>2024-05-14 13:23:43 +0200
committerGitHub <noreply@github.com>2024-05-14 04:23:43 -0700
commitebba7ae095d9bb800c43188df848ac4f4733d167 (patch)
treeb5c929c4f40bc4a746eb54fcea4e9cbb3455e1f8 /scripts/gen_help_html.lua
parent2f4792943aa92223fadd472f20449cd13707ff7a (diff)
downloadrneovim-ebba7ae095d9bb800c43188df848ac4f4733d167.tar.gz
rneovim-ebba7ae095d9bb800c43188df848ac4f4733d167.tar.bz2
rneovim-ebba7ae095d9bb800c43188df848ac4f4733d167.zip
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 (limited to 'scripts/gen_help_html.lua')
-rw-r--r--scripts/gen_help_html.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/gen_help_html.lua b/scripts/gen_help_html.lua
index 8a5afad337..7051c8dbc3 100644
--- 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;
}