#4 ✓resolved
Joachim Garth

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

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.

New-ticket Create new ticket

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

Pages