Hi Andrea,

On 07/05/13 15:25, avalori wrote:
> Hi, 
> 
> I'm using fop libraries v1.1, and I noted that fop by default collapse
> white-spaces inside strings. For example a block like:
> 
> 
> Render as
> 
> 
> 
> eliminating whitespaces. I would like to keep strings inner whitespaces in
> the generated pdf, so I tried to use the white-space="pre" attribute inside
> the block tag, but it preserves only white-spaces outside the string.
> 
> Then I tried to use the white-space-treatment="preserve" attribute inside
> the block tag, but the rendered page had collapsed white-spaces.
> 
> Finally I tried to use the white-space-collapse="false" attribute inside the
> block, and also in this case the rendered page had collapsed white-spaces.

white-space-collapse="false" should do what you need. Could you send us
a complete FO file? Which version of FOP are you using?


> Is there a way to change the fop behaviour in order to preserve white-spaces
> inside strings?
> 
> Thanks, 
> Andrea


Thanks,
Vincent

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Reply via email to