From 274620a73730e3055b6b9c0e6e42abc912aaf024 Mon Sep 17 00:00:00 2001 From: Jase Date: Fri, 27 Jun 2008 04:52:47 +0100 Subject: [PATCH] Changed/Fixed escaping of entities in latex block code. Entities should not be escaped in this case it seems (well from what I've found when testing with the pdflatex command). [#8 state:resolved] --- lib/formatters/latex.rb | 2 +- test/code.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/formatters/latex.rb b/lib/formatters/latex.rb index 929a174f..d3233aff 100644 --- a/lib/formatters/latex.rb +++ b/lib/formatters/latex.rb @@ -10,7 +10,7 @@ def escape(text) end def escape_pre(text) - latex_esc(text) + text end def after_transform(text) diff --git a/test/code.yml b/test/code.yml index 85e9aefa..68f8314b 100644 --- a/test/code.yml +++ b/test/code.yml @@ -41,7 +41,7 @@ name: escaping of existing entities in blockcode in: "bc. Math fact: 3 < 5 & 5 > 3 but £5 > $5. " html: "
Math fact: 3 &lt; 5 &amp; 5 &gt; 3 but &pound;5 &#62; $5.
" -latex: "\\begin{verbatim}\n\\begin{verbatim}Math fact: 3 \\< 5 \\& 5 \\> 3 but \\£5 \\&\\#62; \\$5. \\\\\\end{verbatim}\\end{verbatim}\n" +latex: "\\begin{verbatim}\n\\begin{verbatim}Math fact: 3 < 5 & 5 > 3 but £5 > $5.\\end{verbatim}\\end{verbatim}\n" --- name: no formatting within pre in: |-