Skip to content

Commit

Permalink
#ord fix in to_latex_strings.rb too
Browse files Browse the repository at this point in the history
  • Loading branch information
bhollis committed Jul 31, 2012
1 parent 0b33446 commit 019f68a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/maruku/output/to_latex_strings.rb
Expand Up @@ -32,7 +32,7 @@ def escape_to_latex(s)
s2 = ""
s.each_char do |b|
if LATEX_TO_CHARCODE.include? b
s2 += "{\\tt \\symbol{#{b.ord}}}"
s2 += "{\\tt \\symbol{#{b[0].ord}}}"
elsif LATEX_ADD_SLASH.include? b
s2 << ?\\ << b
elsif b == '\\'
Expand Down Expand Up @@ -61,4 +61,4 @@ def to_latex
# 'PDF' => '\\textsc{pdf}\\xspace '
}

end
end

0 comments on commit 019f68a

Please sign in to comment.