title: Inserting line breaks in a PDF generated with XSL-FO
body: <p>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 PDF, the output is "1234567". How can I preserve the line breaks? I already tried <em>white-space-collapse</em>, <em>linefeed-treatment</em>, and <em>white-space-treatment</em> but that didn't help. Line feed (enters) are coming in XML although.</p>
  
  <pre><code>&lt;xsl:template match="AddCmt"&gt;
  &lt;fo:block keep-together="always"&gt; Additional Comments 
      &lt;fo:block-container border-style="solid" height="20mm" width="170mm" space-after="5mm"&gt; 
          &lt;fo:block wrap-option="wrap" linefeed-treatment="preserve" white-space-collapse="false" white-space-treatment="preserve"&gt; 
              &lt;xsl:attribute name="id"&gt; 
                  &lt;xsl:value-of select="../CMT_ID"/&gt; 
              &lt;/xsl:attribute&gt; 
              &lt;xsl:value-of select="../ANS_CMT"/&gt; 
          &lt;/fo:block&gt; 
      &lt;/fo:block-container&gt; 
  &lt;/fo:block&gt; 
  </code></pre>
  
  <p> </p>