ddengler / prawn-grouping

A gem to add a more flexible grouping option to the prawn gem
https://github.com/ddengler/prawn-grouping
MIT License
14 stars 21 forks source link

Inline Formatting does not work inside of group block #5

Closed jeffreylammers closed 10 years ago

jeffreylammers commented 10 years ago

I was trying to use the inline formatting functions in prawn inside of a group block and was unable to do so. Use of inline formatting gives the following exception:

uninitialized constant PARSER_REGEX

This line does not work:

text "#{label}:   #{value}", inline_format: true, leading: 2, style: :bold

But this line does:

formatted_text [ { text: "#{label}:   ", styles: [:bold] }, {text: "#{value}", font: "Times-Roman"} ], leading: 2
ddengler commented 10 years ago

Thanks for reporting. I will look into this.

ddengler commented 10 years ago

Finally found some time to look into this. inline_format works as expected on ruby > 1.9.3. It is failing on 1.9.3 for some reason. I will close this for now, keeping your alternative as a solution for the problem.