X-Git-Url: http://git.cyclocoop.org/?p=lhc%2Fweb%2Fclavette_www.git;a=blobdiff_plain;f=www%2Fplugins-dist%2Fcompresseur%2Flib%2Fcsstidy%2Fclass.csstidy_print.php;h=5f4c2cd49101898bd8ba413cb9e927948470ab20;hp=48aa8974adeb7c617967bde63427f9ab6bf569d2;hb=cc641eb476987612f6d6df1a5417c1c5582a8ab8;hpb=7d84a490677fb716a1fd4df260f8eab35f6a8506 diff --git a/www/plugins-dist/compresseur/lib/csstidy/class.csstidy_print.php b/www/plugins-dist/compresseur/lib/csstidy/class.csstidy_print.php index 48aa897..5f4c2cd 100644 --- a/www/plugins-dist/compresseur/lib/csstidy/class.csstidy_print.php +++ b/www/plugins-dist/compresseur/lib/csstidy/class.csstidy_print.php @@ -256,9 +256,11 @@ class csstidy_print { case AT_END: $out = & $output; - $out .= $template[10] . str_replace("\n", "\n" . $template[10], $in_at_out); + $in_at_out = str_replace("\n\n", "\r\n", $in_at_out); // don't fill empty lines + $in_at_out = str_replace("\n", "\n" . $template[10], $in_at_out); + $in_at_out = str_replace("\r\n", "\n\n", $in_at_out); + $out .= $template[10] . $in_at_out . $template[9]; $in_at_out = ''; - $out .= $template[9]; break; case COMMENT: