From 3ad491548632328bb8df33165fefb8d5b9b7b7a9 Mon Sep 17 00:00:00 2001 From: Davin Milun Date: Mon, 26 May 1997 00:54:04 +1200 Subject: [PATCH] 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 --- pod/pod2man.PL | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.7.4