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