Support to_s during escaping
Reported by Bruce Williams | September 20th, 2008 @ 01:31 PM
Reported by Jonas Bähr
In my templates I have many calls to the latex_escape function with objects that are not necessarily Strings (no :gsub). The old version of rtex used to call :to_s for each object before the gsub'ing so there where no problems. The following patch restores this behaviour. It would be nice if you could integrate it since it prevents a lot of porting and keeps the templates more readable.
Comments and changes to this ticket
-
Bruce Williams September 20th, 2008 @ 01:33 PM
- State changed from new to resolved
- Tag set to bug, escaping, v2-branch
Resolved by 07278e3566b664da14893bd51bb76f217968de28
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.