Hi,

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

This is undesirable.  So I've tried experimenting with:

  .de nobreak
  .  ie '\*[.T]'html' <nobr>\\$1</nobr>
  .  el \\$1
  ..

But that, of course, outputs <nobr> and </nobr> as text.  Is there
a way to tell groff to insert these things verbatim into the output,
as actual tags?


(I know that <nobr> is a deprecated tag, but it still works in Firefox.
That's good enough for me for now.)

[Please CC; not subscribed.]


Benno

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to