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