You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by "Koes, Derrick" <De...@Smith-Nephew.com> on 2002/07/02 17:52:54 UTC
table column width problem
If I create a line of text and put it in a table cell, it adheres to the
column-width as long as it has spaces.
However, if I create a line of text without spaces it goes far beyond the
column-width setting.
Does anyone know why this happens?
Re: table column width problem
Posted by Chuck Paussa <Ch...@systems.dhl.com>.
Koes, Derrick wrote:
> If I create a line of text and put it in a table cell, it adheres to
> the column-width as long as it has spaces.
>
> However, if I create a line of text without spaces it goes far beyond
> the column-width setting.
>
> Does anyone know why this happens?
>
FOP has no idea how to break the text unless you have defined a
hyphenation pattern.
Here's the example from hyphen.fo in your examples directory:
<fo:block font-size="12pt"
font-family="sans-serif"
line-height="15pt"
space-after.optimum="3pt"
text-align="justify"
language="en"
country="US"
hyphenate="true"
hyphenation-push-character-count="2"
hyphenation-remain-character-count="2">
Chuck