Subject: | Issue with <pre> tags. |
When using HTML Clean, I found that when I had produced some code inside the preformatted tags (<pre></pre>) that this module was actually removing some of the return characters. Since this is pre-formatted, this corrupts the way in which the page is supposed to be shown, and thus is not a valid optimisation.
In my example, I have:
<code><span class="linecomment"># Perl code here</span><br>
<span class="category2">print</span> "Hello world!";</code>
and this then gets converted to:
<code><span class="linecomment"># Perl code here</span><span class="category2">print</span> "Hello world!";</code>
There's a line return missing from in between the comment and the next line. (NB. I added a break tag (br) to ensure that the line return is shown) Clearly when showing code inside pre tags and then optimising the entire page there's a big problem.
Suggested fix: turn off optimisations betweens pre tags.
Perl version: This is perl, v5.8.2 built for i386-freebsd