From ebba7ae095d9bb800c43188df848ac4f4733d167 Mon Sep 17 00:00:00 2001 From: gusain71 <115005392+gusain71@users.noreply.github.com> Date: Tue, 14 May 2024 13:23:43 +0200 Subject: [PATCH] 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; --- scripts/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 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
is - already visually separated by the linebreak. */ + /* Text followingis already visually separated by the linebreak. */ margin-bottom: 0; }