Re: grohtml: confused about constant-width font handling
Colin Watson <[email protected]>
| Newsgroups | gmane.comp.printing.groff.general |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Jan 20, 2026 at 03:20:56PM +0000, Colin Watson wrote: > $ cat t.1 > .TH T 1 > .SH NAME > t \- a test > .SH DESCRIPTION > .ft CR > constant-width text > $ ./test-groff -ww -man -Thtml t.1 > [...] > <p style="margin-left:6%; margin-top: 1em">constant-width > text</p> > >So there's no warning, but also no actual constant-width output. Am I >holding it wrong somehow, or is this broken? Further confusion with groff 1.23.0. ".nf" then ".ft C" results in <pre>. ".ft C" on its own does not result in <tt> even though you might think it would based on the behaviour in combination with ".nf". ".ft CR" has no effect with or without ".nf". I can see why the author of this page decided to use ".ft C" for the HTML device even though it doesn't seem to actually make any sense, since it _works_ in 1.23.0 - but doesn't any more. What's going on? -- Colin Watson (he/him) [[email protected]]