[BACK]Return to blank.out_ascii CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc / regress / mdoc / Bd

File: [cvsweb.bsd.lv] / mandoc / regress / mdoc / Bd / blank.out_ascii (download)

Revision 1.3, Mon Aug 15 18:12:31 2022 UTC (22 months ago) by schwarze
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +8 -1 lines

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.

BD-BLANK(1)                 General Commands Manual                BD-BLANK(1)

NNAAMMEE
     BBdd--bbllaannkk - handling of blank lines in literal displays

DDEESSCCRRIIPPTTIIOONN
     completely blank line:

     line containing a blank character:

     line containing two blank characters:

     line containing space tab space:

     line containing a zero-width space:

     line containing an invalid numbered character escape:

     line containing an invalid named character escape:

     line containing a font escape:
     line starting with a blank character:
      x
     line starting with two blank characters:
       x
     line ending in one blank character:
     line ending in two blank characters:
     line ending in space tab space:
     line containing a Pp macro:

     finally, a trailing blank line:

     An empty one-line literal display:
     end of test document

OpenBSD                         August 15, 2022                        OpenBSD