[BACK]Return to before-Dd.in CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc / regress / roff / cond

Annotation of mandoc/regress/roff/cond/before-Dd.in, Revision 1.2

1.2     ! schwarze    1: .\" $OpenBSD: before-Dd.in,v 1.2 2017/07/04 14:53:26 schwarze Exp $
1.1       schwarze    2: .if n \{.ds mystring mytext
                      3: .\}
1.2     ! schwarze    4: .Dd $Mdocdate: July 4 2017 $
1.1       schwarze    5: .Dt IF-BEFORE-DD 1
1.2     ! schwarze    6: .Os
1.1       schwarze    7: .Sh NAME
                      8: .Nm if-before-Dd
                      9: .Nd end of if block on its own line before Dd
                     10: .Sh DESCRIPTION
                     11: In an old version of
                     12: .Xr mandoc 1 ,
                     13: .Xr mdoc 7
                     14: file format autodetection failed when the end of an
                     15: .Ic if
                     16: block stood on its own line before the initial
                     17: .Xr mdoc 7
                     18: .Ic Dd
                     19: macro.
                     20: The file was mishandled as
                     21: .Xr man 7
                     22: and parsing failed with unknown macro errors.
                     23: .Pp
                     24: If the present document looks like a proper
                     25: .Xr mdoc 7
                     26: document and the following display reads
                     27: .Dq mytext ,
                     28: then the problem did not come back:
                     29: .Bd -ragged -offset indent
                     30: \*[mystring]
                     31: .Ed

CVSweb