#7 ✓resolved
Bruce Williams

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

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