Browse files

Fixed \char escapes in tex.

  • Loading branch information...
1 parent 1efec1c commit ed034498ac207c0bd91b47a3d7ed6cf0e305948f John MacFarlane committed Aug 21, 2011
Showing with 5 additions and 5 deletions.
  1. +5 −5 lunamark/writer/tex.lua
View
10 lunamark/writer/tex.lua
@@ -27,11 +27,11 @@ local escaped = {
["_"] = "\\_",
["#"] = "\\#",
["^"] = "\\^{}",
- ["\\"] = "\\char92",
- ["~"] = "\\char126",
- ["|"] = "\\char124",
- ["<"] = "\\char60",
- [">"] = "\\char62",
+ ["\\"] = "\\char92{}",
+ ["~"] = "\\char126{}",
+ ["|"] = "\\char124{}",
+ ["<"] = "\\char60{}",
+ [">"] = "\\char62{}",
["["] = "{[}", -- to avoid interpretation as optional argument
["]"] = "{]}",
["\160"] = "~",

0 comments on commit ed03449

Please sign in to comment.