jugglinmike
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Forum: Plugins
In reply to: [Minify HTML] Newlines not recognized when preserving significant white spaceI’ve developed a fix, but I can’t find contact information for the author. Posting it here in the hopes that they see it and apply it:
$process = $split[$i]; $asis = ''; } -$process = preg_replace(array ('/\>[^\S ]+' . $mod, '/[^\S ]+\<' . $mod, '/(\s)+' . $mod), array('>', '<', '\\1'), $process); +$process = preg_replace(array ('/\>([^\S ])+' . $mod, '/([^\S ])+\<' . $mod, '/(\s)+' . $mod), array('>\\1', '\\1<', '\\1'), $process); if ( $minify_html_comments != 'no' ) $process = preg_replace('/<!--(?!\s*(?:\[if [^\]]+]|<!|>))(?:(?!-->).)*-->' . $mod, '', $process); $buffer .= $process.$asis;- This reply was modified 7 years, 4 months ago by jugglinmike. Reason: correct code formatting
- This reply was modified 7 years, 4 months ago by jugglinmike. Reason: Another attempt to correct formatting
Forum: Plugins
In reply to: [Minify HTML] Newlines not recognized when preserving significant white spaceApologies: I’m having trouble formatting this report in a way that preserves the relevant markup. I’ve copied it to another page where I can verify the rendering:
https://gist.github.com/jugglinmike/facaedcb9706cd9d9b5d9a959e67c05b
Viewing 2 replies - 1 through 2 (of 2 total)