File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
main/java/com/gargoylesoftware/css/parser
test/java/com/gargoylesoftware/css/parser Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -718,12 +718,18 @@ private void appendParams(final StringBuilder sb) {
718
718
LexicalUnit l = parameters_ ;
719
719
if (l != null ) {
720
720
sb .append (l .toString ());
721
+
722
+ LexicalUnit last = l ;
721
723
l = l .getNextLexicalUnit ();
722
724
while (l != null ) {
723
- if (l .getLexicalUnitType () != LexicalUnitType .OPERATOR_COMMA ) {
725
+ if (l .getLexicalUnitType () != LexicalUnitType .OPERATOR_COMMA
726
+ && !"=" .equals (l .toString ())
727
+ && !"=" .equals (last .toString ())) {
724
728
sb .append (" " );
725
729
}
726
730
sb .append (l .toString ());
731
+
732
+ last = l ;
727
733
l = l .getNextLexicalUnit ();
728
734
}
729
735
}
Original file line number Diff line number Diff line change @@ -2513,7 +2513,7 @@ public void opacity() throws Exception {
2513
2513
Assert .assertEquals ("\" progid:DXImageTransform.Microsoft.Alpha(Opacity=90)\" " , value .getCssText ());
2514
2514
2515
2515
value = ((CSSStyleRuleImpl ) rule ).getStyle ().getPropertyCSSValue ("filter" );
2516
- Assert .assertEquals ("alpha(opacity = 90)" , value .getCssText ());
2516
+ Assert .assertEquals ("alpha(opacity= 90)" , value .getCssText ());
2517
2517
2518
2518
value = ((CSSStyleRuleImpl ) rule ).getStyle ().getPropertyCSSValue ("-moz-opacity" );
2519
2519
Assert .assertEquals ("0.9" , value .getCssText ());
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ public void parseStyleSheetIgnoreProblemCss3() throws Exception {
102
102
103
103
AbstractCSSRuleImpl rule = rl .getRules ().get (0 );
104
104
CSSStyleRuleImpl sr = (CSSStyleRuleImpl ) rule ;
105
- Assert .assertEquals ("p { filter: alpha(opacity = 33.3); opacity: 0.333; }" , sr .getCssText ());
105
+ Assert .assertEquals ("p { filter: alpha(opacity= 33.3); opacity: 0.333; }" , sr .getCssText ());
106
106
107
107
rule = rl .getRules ().get (1 );
108
108
sr = (CSSStyleRuleImpl ) rule ;
You can’t perform that action at this time.
0 commit comments