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: One \fBtwo\fP three \fPfour\fP five \fPsix\fP seven. ...but it's rarely used because it's not very readable. I guess this makes it fall into the same category as interpolating undefined registers as 0, which some code also relies on, but is often not intended, hence it having an optional warning category 'reg'. ~ onf