Navigation Menu

Skip to content

Commit

Permalink
{} escapes have to go first
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruce Williams committed Aug 19, 2008
1 parent 97d0e05 commit e9b5067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rtex/escaping.rb
Expand Up @@ -12,13 +12,13 @@ def escape(text)
# List of replacements
def replacements
@replacements ||= [
[/([{}])/, '\\\\\1'],
[/\\/, '\textbackslash{}'],
[/\^/, '\textasciicircum{}'],
[/~/, '\textasciitilde{}'],
[/\|/, '\textbar{}'],
[/\</, '\textless{}'],
[/\>/, '\textgreater{}'],
[/([{}])/, '\\\\\1'],
[/([_$&%#])/, '\\\\\1']
]
end
Expand Down

0 comments on commit e9b5067

Please sign in to comment.