Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Not a very precise answer but according to <a href="http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg156537.html" rel="nofollow noreferrer">this message</a>, Jasper might be doing this (I admit I didn't check myself):</p> <blockquote> <p>I had a search around, and don't think this one has been asked before.</p> <p>I've been writing my JSP pages as XML documents (.jspx suffix), and one difference that annoys me a little between using the terse XML document syntax and the (pre-2.0) legacy syntax are line breaks, or lack of in the former.</p> <p>The processed XML document results in the XHTML where the tags are unbroken by either spacing or line breaks.</p> <p>I understand fully the concept behind why this is the case; the first XML document is parsed down to it's node tree, and then the XHTML is generated based on this tree.</p> <p>However, I am of the understanding that the white spacing doesn't have to be lost along the way. I checked the jasper code, particularly org.apache.jasper.compiler.Node, and a cursory inspection reveals a lot of .trim() calls, that may be unnecessarily removing the spacing. However, I am not so familiar with this code to say decisively.</p> <p>In summation, this may be a bug/area of improvement. Regardless, is there a way to embed line breaks via configuration? I feel confident to be able to achieve these with ugly, ugly CDATA sections, or some like technique (jsp:text?)... but before I go to that trouble, is there an easier/neater way?</p> </blockquote> <p>The message is pretty old but the same behavior is also reported in <a href="http://raibledesigns.com/rd/entry/trim_spaces_in_your_jsp1#comment-1186051418000" rel="nofollow noreferrer">this comment</a> and your question seems to imply it still applies.</p> <p>Not sure you can change this behavior (without using a Filter).</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload