Up to [cvsweb.bsd.lv] / mandoc / regress / mdoc / Bd
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: HEAD
Revision 1.3 / (download) - annotate - [select for diffs], Mon Aug 15 18:12:31 2022 UTC (22 months ago) by schwarze
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +10 -2 lines
Diff to previous 1.2 (unified)
Distinguish between escape sequences that produce no output whatsoever (for example \fR) and escape sequences that produce invisible zero-width output (for example \&). No, i'm not joking, groff does make that distinction, and it has consequences in some situations, for example for vertical spacing in no-fill mode. Heirloom and Plan 9 behaviour is subtly different, but in case of doubt, we want to follow groff. While this fixes the behaviour for the majority of escape sequences, in particular for those most likely to occur in practice, it is not perfect yet because some of the more exotic ESCAPE_IGNORE sequences are actually of the "no output whatsoever" type but treated as "invisible zero-width" for now. With the new ASCII_NBRZW mechanism in place, switching them over one by one when the need arises will no longer be very difficult.