diff options
-rw-r--r-- | pod/pod2man.PL | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pod/pod2man.PL b/pod/pod2man.PL index cd14ce2866..b0f8b1b36a 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 |