From: keni Date: Mon, 16 Apr 2012 15:09:55 +0000 (+0000) Subject: Fix PL macro indentation when the entry spans a page break. (Note to anyone X-Git-Tag: MOVE2GIT~28 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6f1df20db895d03bde5ca203f7590f121ddc18a8;p=nethack Fix PL macro indentation when the entry spans a page break. (Note to anyone 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.) --- diff --git a/doc/Guidebook.mn b/doc/Guidebook.mn index 21d9b8c2e..339b0fb8f 100644 --- a/doc/Guidebook.mn +++ b/doc/Guidebook.mn @@ -15,22 +15,24 @@ .\" .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