How to insert line breaks in a PDF generated with XSL-FO
问题 I am generating a PDF using XSL-FO and XML. In a textbox, the user can enter data like "1", then he presses ENTER, then "2", ENTER, "3", etc. But in the XML and hence in the PDF, the output is "1234567". How can I preserve the line breaks? I already tried white-space-collapse , linefeed-treatment and white-space-treatment but that didn't help. My XSL looks like: <xsl:template match="AddCmt"> <fo:block keep-together="always"> Additional Comments <fo:block-container border-style="solid" height=