Changeset 43833 in spip-zone


Ignore:
Timestamp:
Jan 24, 2011, 8:20:54 AM (10 years ago)
Author:
cedric@…
Message:

ne pas manger des retour ligne lors de la minification HTML

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _core_/plugins/compresseur/lib/minify_html/class.minify_html.php

    r43376 r43833  
    122122        // trim each line.
    123123        // @todo take into account attribute values that span multiple lines.
    124         $this->_html = preg_replace('/^\\s+|\\s+$/m', '', $this->_html);
     124              // 2 regexp because merging un /^\\s+|\\s+$/m also del a lot of newline chars ???
     125        $this->_html = preg_replace('/\\s+$/m', '', $this->_html);
     126        $this->_html = preg_replace('/^\\s+/m', '', $this->_html);
    125127
    126128        // remove ws around block/undisplayed elements
Note: See TracChangeset for help on using the changeset viewer.