]> granicus.if.org Git - nethack/commitdiff
Fix PL macro indentation when the entry spans a page break. (Note to anyone
authorkeni <keni>
Mon, 16 Apr 2012 15:09:55 +0000 (15:09 +0000)
committerkeni <keni>
Mon, 16 Apr 2012 15:09:55 +0000 (15:09 +0000)
who thinks these should be upgraded to keep an entry on a single page: look
at the footnote code in the original nroff docs, the tmac.n display code,
and then use ev 2 anyway - as long as there are no footnotes on a page with
PL, you might get away with it.)

doc/Guidebook.mn

index 21d9b8c2ed219489640e49b235571abf6301c4d5..339b0fb8f35dd63bcf91c2fd1031221c5bac8c0a 100644 (file)
 .\" .PE
 .\"    clean up
 .de PS
-.nr PX \\w'\\$1'u
-.nr PY \\w'\\$1\ -\ 'u
-.sn \\n(pdu
-.in +\\n(PYu
-.si
+.nr PY \\w'\\$1\ -\ 'u                 \" width of label plus " - " for line 1
+.sn \\n(pdu                            \" tmac.n: inter-paragraph space
+.in +\\n(PYu                           \" additional indent past label (etc)
+.si                                    \" tmac.n: start indented section
 ..
 .\" labeled paragraph label (and first line)
 .de PL
-.ti -\\n(PYu
-\\$1\\h'|\\n(PXu'\ -\ \\c
+.br
+\\h'|-\\n(PYu'\\$1\ -\ \\c             \" back up, output the label,
+.                                      \" then output the " - " and attach
+.                                      \" the next line (the text) without
+.                                      \" stopping(\c: nroff section 4.2)
 ..
 .\"labeled paragraph end
 .de PE
-.ei
-.in -\\n(PYu
-.sn \\n(pdu
+.ei                                    \" tmac.n: end indented section
+.in -\\n(PYu                           \" undo indent past label (etc)
+.sn \\n(pdu                            \" tmac.n: inter-paragraph space
 ..
 .\" end of labeled paragrah
 .mt