From: Kunal Mittal [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 07, 2001 12:03 PM
To: [EMAIL PROTECTED]
Subject: Preserving Line Breaks
I am using FOP to generate PDF files. The FOP code is generated through a Java Servlet. When I get the data from the database, do linebreaks in the data get preserved?
User enters text into a text field on a HTML (JSP page). This data is stored with line break information in the dB. When I get this data and send it to FOP, the fo:block element doesn't preserve the line breaks.
Senior Consultant, i R i s e
Bus: (510) 757-6145
eFax: (413) 460-5823
Title: Preserving Line Breaks
Depends on your FO.
<fo:block white-space-collapse="false"> will maintain your line breaks, otherwise they are lost.