Prawn Version to use - HTML formatting

96 views
Skip to first unread message

Walter

unread,
Jan 13, 2011, 4:12:04 PM1/13/11
to Prawn
I'm using the prawn gem and it's giving me version 0.8.4. I see
documentation and code available at github for version 0.10.2. Which
version should I use?

https://github.com/sandal/prawn
https://github.com/sandal/prawn/tree/0.10.2

I would like to use prawn/format for html formatting using
text:format_inline => true.
http://www.fousa.be/blog/inline-formatting-with-prawn

This documentation suggests it is available. But's not working with
version 0.8.4.
http://rubydoc.info/github/sandal/prawn/master/Prawn/Text:text

Any recommendations? I want to allow <b> and <i> and other formatting
to be mixed in within the text.

Walter

unread,
Jan 13, 2011, 4:50:37 PM1/13/11
to Prawn
Note:

Is version 0.10.2 stable?

Imobach González Sosa

unread,
Jan 13, 2011, 5:30:56 PM1/13/11
to prawn...@googlegroups.com
2011/1/13 Walter <bart...@gmail.com>:

> Note:
>
> Is version 0.10.2 stable?

Hi Walter,

It's stable for me :) I mean I'm using that version in an application
and it works pretty fine for me. BTW, I've been using the HTML
formatting and it's working right.

Ah, I almost forgot: the "new" table API is great :) Thank you guys!

--
Imobach González Sosa
imobachgs at gmail dot com

Brad Ediger

unread,
Jan 17, 2011, 1:53:04 PM1/17/11
to prawn...@googlegroups.com
On Thu, Jan 13, 2011 at 3:12 PM, Walter <bart...@gmail.com> wrote:
> I'm using the prawn gem and it's giving me version 0.8.4.  I see
> documentation and code available at github for version 0.10.2.  Which
> version should I use?
>
> https://github.com/sandal/prawn
> https://github.com/sandal/prawn/tree/0.10.2
>
> I would like to use prawn/format for html formatting using
> text:format_inline => true.
> http://www.fousa.be/blog/inline-formatting-with-prawn

That document refers to prawn-format, which was available with the old
versions of Prawn (up to 0.8.4). That syntax will not work with newer
versions, where inline formatting has been rewritten.

0.8.4 is still the latest officially stable version, but many have
found subsequent versions to be stable enough to work in production.
If you are OK with using non-"stable" releases, you could move to
0.10.2 or even track master. This will give you the latest features in
inline formatting.

> This documentation suggests it is available.  But's not working with
> version 0.8.4.
> http://rubydoc.info/github/sandal/prawn/master/Prawn/Text:text

That documentation is based on our master branch, which tracks current
development.

-be

Reply all
Reply to author
Forward
0 new messages