Subject: | Pod::LaTeX doesn't escape -- properly |
Pod::LaTeX doesn't handle -- in PODs specially, passing it directly to
LaTeX, which then proceeds to replace it with a single -. Attaching patch
to replace ----- with -{}-{}-{}-{}-
Subject: | 0001-added-another-LaTeX-escape.patch |
From 6093b0e003517c4d2d3e0aacef9059b240d29488 Mon Sep 17 00:00:00 2001
From: Dima Kogan <dima@secretsauce.net>
Date: Fri, 18 Nov 2011 00:19:35 -0800
Subject: [PATCH] added another LaTeX escape: --- => -{}-{}-
---
lib/Pod/LaTeX.pm | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/lib/Pod/LaTeX.pm b/lib/Pod/LaTeX.pm
index 3f299c2..7772b51 100644
--- a/lib/Pod/LaTeX.pm
+++ b/lib/Pod/LaTeX.pm
@@ -1621,6 +1621,10 @@ sub _replace_special_chars {
# Now add the dollars around each \backslash
$paragraph =~ s/(\\backslash)/\$$1\$/g;
+
+ # Convert ------ to -{}-{}-{}-{}-{}-
+ $paragraph =~ s/-(?=-)/-{}/g;
+
return $paragraph;
}
--
1.7.6.3