Hi Benno, On Sun Feb 16, 2025 at 12:04 PM CET, Benno Schulenberg wrote: > In the HTML version of a man page it can happen that a long option > (like --restricted) occurs near the right edge and that the browser > splits the thing into "--" at the end of the line and "restricted" > at the beginning of the next line. Is there a way to mark such long > options in the man page so that browsers are prevented from breaking > the marked text in any way? > > For example, in the man page of GNU nano [1], search for "--unix" > (without the quotes) and see that in the description of this option > and the next two options another long option is mentioned. With > the default width of my browser, the description of the next option > (--view) gets wrapped like this: > > Just view the file and ... ... other files for viewing, unless -- > restricted is given too. > > [1] https://nano-editor.org/dist/v7/nano.1.html
Sounds like "modern" web browsers just break lines poorly. I have replicated what you are describing in Firefox 128.7.0esr. However, I could not replicate this in good old lynx: -v, --view Just view the file and disallow editing: read-only mode. This mode allows the user to open also other files for viewing, unless --restricted is given too. In short, I would consider this to be a bug in the respective browsers. ~ onf