mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
2f4792943a
commit
ebba7ae095
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user