Skip to content

Commit

Permalink
Changed/Fixed escaping of entities in latex block code.
Browse files Browse the repository at this point in the history
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]
  • Loading branch information
Jase authored and Jason Garber committed Jun 27, 2008
1 parent a90d154 commit 274620a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/formatters/latex.rb
Expand Up @@ -10,7 +10,7 @@ def escape(text)
end

def escape_pre(text)
latex_esc(text)
text
end

def after_transform(text)
Expand Down
2 changes: 1 addition & 1 deletion test/code.yml
Expand Up @@ -41,7 +41,7 @@ name: escaping of existing entities in blockcode
in: "bc. Math fact: 3 < 5 & 5 > 3 but £5 > $5.
"
html: "<pre><code>Math fact: 3 &amp;lt; 5 &amp;amp; 5 &amp;gt; 3 but &amp;pound;5 &amp;#62; $5.</code></pre>"
latex: "\\begin{verbatim}\n\\begin{verbatim}Math fact: 3 \\&lt; 5 \\&amp; 5 \\&gt; 3 but \\&pound;5 \\&\\#62; \\$5. \\\\\\end{verbatim}\\end{verbatim}\n"
latex: "\\begin{verbatim}\n\\begin{verbatim}Math fact: 3 &lt; 5 &amp; 5 &gt; 3 but &pound;5 &#62; $5.\\end{verbatim}\\end{verbatim}\n"
---
name: no formatting within pre
in: |-
Expand Down

0 comments on commit 274620a

Please sign in to comment.