FYI: Text::Box Feature Fixed in Prawn

Rails Riders,

For those who like “prawning PDF docs to their RoR apps” :
Text::Box has been patched to default the text-box height in stretchy
boxes
to the distance to the bottom of the page if no height is supplied (or
if
overflow is :expand).

Peace,


Edmond
Software Developer | Baobab Health Trust (http://www.baobabhealth.org/)
|
Malawi

Cell: +265 999 465 137 | +265 881 234 717

“Many people doubt open source software and probably don’t realize that
there is an alternative… which is just as good…” – Kevin Scannell

---------- Forwarded message ----------
From: Brad E. [email protected]
Date: 2010/8/19
Subject: [dev] RFC: Text::Box in stretchy bounding box uses margin_box
for
default height

In an effort to fix tables inside spans [#142], I have pushed the
following commit to master:

Previously, Text::Box would refuse to render inside a stretchy
bounding box because the height to the “bottom” of the box was zero.
I’ve patched this to default the text-box height in stretchy boxes to
the distance to the bottom of the page if no height is supplied (or if
overflow is :expand). This has not yet fixed the table problem, but
it’s getting better.

I’m generally pretty cavalier about pushing stuff that passes all of
the specs, but I wanted to throw this out there for review in case
there might be a corner case I’m missing.

-be

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs