Closed jerryjohnjacob closed 9 years ago
RGhost uses a very primitive parser to treat tags, you can either replace failing pattern before adding the text to your rghost document or patch the RGhost to be more smart for this kind of pattern.
So in the above example, what should the input be replaced with in order to achieve the desired output ("<>" itself)?
text = "<font_tag><></font_tag>"
text.gsub(/<\s*>/, '') #=> "<font_tag></font_tag>"
Thanks @shairontoledo :)
When using font tags to add text to a document, if the tag used contains opening and closing angle brackets, the resulting string on the output PDF is incorrect. For example,
produces "font_tag /font_tag" on the final generated PDF document.
What can be done to avoid this?