Bug #8827: Need preserve_css off or else CSS array is not generated
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 25 Jun 2010 18:11:23 +0000 (12:11 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 25 Jun 2010 18:11:33 +0000 (12:11 -0600)
imp/view.php

index 9485f59..bb5314a 100644 (file)
@@ -265,7 +265,7 @@ case 'print_attach':
                     }
                 }
 
-                if ($style = Horde_Text_Filter::filter(Horde_Themes::loadCssFiles(Horde_Themes::getStylesheets()), 'csstidy', array('ob' => true))->filterBySelector($selectors)) {
+                if ($style = Horde_Text_Filter::filter(Horde_Themes::loadCssFiles(Horde_Themes::getStylesheets()), 'csstidy', array('ob' => true, 'preserve_css' => false))->filterBySelector($selectors)) {
                     $elt->setAttribute('style', ($elt->hasAttribute('style') ? rtrim($elt->getAttribute('style'), ' ;') . ';' : '') . $style);
                 }
             }