From: Davin Milun Date: Sun, 25 May 1997 12:54:04 +0000 (+1200) Subject: pod2man produces broken pages X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3ad491548632328bb8df33165fefb8d5b9b7b7a9;p=p5sagit%2Fp5-mst-13.2.git pod2man produces broken pages Georg Moritz wrote: >A single quote in a pod file beginning a line, translated to \*(L' >by B lets the formatter choke, i.e. the line is (in the best >case) treated as a comment. I think it would be better to leave the pods alone, and fix pod2man: p5p-msgid: 1997May25.192350.2055977@hmivax.humgen.upenn.edu private-msgid: 199705310447.AAA15721@obelix.cs.Buffalo.EDU Signed-off-by: Hans Mulder --- diff --git a/pod/pod2man.PL b/pod/pod2man.PL index cd14ce2..b0f8b1b 100644 --- a/pod/pod2man.PL +++ b/pod/pod2man.PL @@ -705,6 +705,9 @@ while (<>) { # trofficate backslashes; must do it before what happens below s/\\/noremap('\\e')/ge; + # protect leading periods and quotes against *roff + # mistaking them for directives + s/^(?:[A-Z]<)?[.']/\\&$&/gm; # first hide the escapes in case we need to # intuit something and get it wrong due to fmting