Hi Freemarker Devs,

I'm not sure if this is a bug or feature request about the compress directive.

Example:

<#compress>
<!DOCTYPE html>
<html>
<pre>   
    #maybe a code example
    With 4 whitespaces in every line
</pre>
</html>
</#compress>

Problem:
The whitespace in the <pre> Tag is removed and will change the layout of it. 
Same for <code>. This is bad for code examples and breaks the concept of <pre> 
and <code>. Since we always use <#compress> in our outer template, you never 
have a change to avoid it.

Ideas:
1. Fix it as a bug and skip <pre> and <code> in compress.
2. Add a new feature like <#nocompress/>


What do you think?

-Michael Riehemann

Reply via email to