Broken string escaping in rails-plugin
Reported by Joachim Garth | August 9th, 2008 @ 04:38 PM
I just noticed that on my setup (Mac OS 10.5 w/ default ruby 1.8.6 (2008-03-03 patchlevel 114)), latex string-escaping seems to be broken. After a short investigation, I discovered a quick solution:
In lib/rtex/escaping.rb:
changed the replacement strings from '\\1' to '\\\1' (added another escaped backslash)
Attached a diff to illustrate the fix further.
Comments and changes to this ticket
-
Bruce Williams August 17th, 2008 @ 04:04 PM
- State changed from new to resolved
(from [97d0e051b4310951bc637fa4a60c7ae57bd4b314]) Fix escaping (backslash wasn't being escaped properly in replacement strings) [#4 state:resolved] http://github.com/bruce/rtex/com...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
RTeX is a Ruby library (and web framework plugin) used to generate PDF documents on-the-fly using the LaTeX typesetting system.
People watching this ticket
Attachments
Referenced by
- 4 Broken string escaping in rails-plugin (from [97d0e051b4310951bc637fa4a60c7ae57bd4b314]) Fix esc...