On Sun Jan 19, 2025 at 5:38 PM CET, onf wrote:
> On Sun Jan 19, 2025 at 3:04 PM CET, Ihor Radchenko wrote:
> > "onf" <o...@disroot.org> writes:
> > >> I am wondering if the situations like the above should be caught by
> > >> groff linter. Currently, they seem not.
> > >
> > > They actually are:
> > > ...
> > >   troff:<standard input>:2: warning: cannot select font 'C'
> > >   One two three four.
> >
> > Sorry, I was not clear.
> > What I meant is
> >
> > \fBbold \fIitalic\fP\fP
>
> Hm. The behavior of \fP\fP is actually intended and can be used
> non-pathologically:
> [...]

s/(\\fP){2}/\1/

I can't imagine a case in which \fP\fP would make sense, so I agree it
could use a diagnostic, although what it's really diagnosing is poor
comprehension of the language in the user.

Reply via email to