Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004899 [Resin] minor always 12-17-11 06:01 06-18-12 13:38
Reporter salah View Status public  
Assigned To ferg
Priority high Resolution no change required  
Status closed   Product Version 4.0.25
Summary 0004899: trim-directive-whitespaces cannot remove whitespace between JSP directives and HTML or text
Description trim-directive-whitespaces cannot remove whitespace between JSP directives and HTML or Text
Additional Information eg:
-----jsp source begin-----
<%--
  Created by IntelliJ IDEA.
  User: salahgao
  Date: 11-12-16
  Time: &19979;&21320;7:42
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="java.util.HashMap" %>
<%@ page import="java.util.List" %>
<html>
  <head>
    <title></title>
  </head>
  <body>
    <%-- line --%>
    Hello World!
  </body>
</html>
-----jsp source begin-----

output
-----html begin-----

<html>
  <head>
    <title></title>
  </head>
  <body>
    
    Hello World!
  </body>
</html>
-----html end-----

Attached Files

- Relationships

- Notes
(0005871)
ferg
06-18-12 13:38

Resin's behavior is correct (checked against JSP spec.) The trim-directive-whitespace only removes text nodes that are pure text. Whitespace ahead of tags or behind tags are not removed, only completely whitespace nodes.
 

- Issue History
Date Modified Username Field Change
12-17-11 06:01 salah New Issue
02-21-12 10:17 ferg Priority normal => high
06-18-12 13:38 ferg Note Added: 0005871
06-18-12 13:38 ferg Assigned To  => ferg
06-18-12 13:38 ferg Status new => closed
06-18-12 13:38 ferg Resolution open => no change required


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed.
28 unique queries executed.
Powered by Mantis Bugtracker