Up to [cvsweb.bsd.lv] / mandoc / regress / roff / mc
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: MAIN
Revision 1.1 / (download) - annotate - [select for diffs], Thu Apr 28 16:21:12 2022 UTC (2 years, 4 months ago) by schwarze
Branch: MAIN
CVS Tags: HEAD
The syntax of the roff(7) .mc request is quite special and the roff_onearg() parsing function is too generic, so provide a dedicated parsing function instead. This fixes an assertion failure when an \o escape sequence is passed as the argument; the bug was found by tb@ using afl(1). It also makes mandoc output more similar to groff in various cases.