martin-g commented on pull request #351:
URL: https://github.com/apache/tomcat/pull/351#issuecomment-698157237


   Since there is no new test for this I am not sure but looking at the code I 
think "Remove white space" is not quite accurate.
   It is rather "Remove empty lines". Because BLANK_LINE_PATTERN would match 
only if there zero or more empty spaces, followed by at least one new line, 
followed by 0 or more empty spaces.
   So the example above:
   
   ```
   |     <head>
   |         <title>Quick Servlet Demo</title>
   |     </head>
   ```
   
   won't produce:
   ```
   |<head>
   | <title>Quick Servlet Demo</title>
   | </head>
   ```
   
   In addition: why preserve 1 new line ? HTML minifiers would produce 
something like `...<head><title>...</title></head>...`


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to