@@ -1297,7 +1297,7 @@ class Stylesheet extends CSSParserRule {
12971297 }
12981298 }
12991299 toSource ( ) {
1300- return "\n" . join ( this . rules . map ( x => x . toSource ( { indent :0 } ) ) ) + "\n" ;
1300+ return this . rules . map ( x => x . toSource ( { indent :0 } ) ) . join ( "\n" ) ;
13011301 }
13021302}
13031303
@@ -1328,12 +1328,10 @@ class AtRule extends CSSParserRule {
13281328 }
13291329 s += "{\n" ;
13301330 if ( this . declarations ) {
1331- s += "\n" . join ( this . declarations . map ( x => x . toSource ( indent + 1 ) ) ) ;
1332- s += "\n" ;
1331+ s += this . declarations . map ( x => x . toSource ( indent + 1 ) ) . join ( "\n" ) + "\n" ;
13331332 }
13341333 if ( this . rules ) {
1335- s += "\n" . join ( this . rules . map ( x => x . toSource ( indent + 1 ) ) ) ;
1336- s += "\n" ;
1334+ s += this . rules . map ( x => x . toSource ( indent + 1 ) ) . join ( "\n" ) + "\n" ;
13371335 }
13381336 s += printIndent ( indent ) + "}" ;
13391337 }
@@ -1364,12 +1362,10 @@ class QualifiedRule extends CSSParserRule {
13641362 }
13651363 s += "{\n" ;
13661364 if ( this . declarations ) {
1367- s += "\n" . join ( this . declarations . map ( x => x . toSource ( indent + 1 ) ) ) ;
1368- s += "\n" ;
1365+ s += this . declarations . map ( x => x . toSource ( indent + 1 ) ) . join ( "\n" ) + "\n" ;
13691366 }
13701367 if ( this . rules ) {
1371- s += "\n" . join ( this . rules . map ( x => x . toSource ( indent + 1 ) ) ) ;
1372- s += "\n" ;
1368+ s += this . rules . map ( x => x . toSource ( indent + 1 ) ) . join ( "\n" ) + "\n" ;
13731369 }
13741370 s += printIndent ( indent ) + "}" ;
13751371 }
@@ -1393,7 +1389,7 @@ class Declaration extends CSSParserRule {
13931389 }
13941390 toSource ( indent = 0 ) {
13951391 let s = printIndent ( indent ) + escapeIdent ( this . name ) + ": " ;
1396- s += "" . join ( this . value . map ( x => x . toSource ( ) ) )
1392+ s += this . value . map ( x => x . toSource ( ) ) . join ( "" ) ;
13971393 if ( this . important ) {
13981394 s += " !important" ;
13991395 }
@@ -1417,7 +1413,7 @@ class SimpleBlock extends CSSParserRule {
14171413 }
14181414 toSource ( ) {
14191415 const mirror = { "{" :"}" , "[" :"]" , "(" :")" } ;
1420- return this . name + "" . join ( this . value . map ( x => x . toSource ( ) ) ) + mirror [ this . name ] ;
1416+ return this . name + this . value . map ( x => x . toSource ( ) ) . join ( "" ) + mirror [ this . name ] ;
14211417 }
14221418}
14231419
@@ -1436,7 +1432,7 @@ class Func extends CSSParserRule {
14361432 }
14371433 }
14381434 toSource ( ) {
1439- return escapeIdent ( this . name ) + "(" + "" . join ( this . value . map ( x => x . toSource ( ) ) ) + ")" ;
1435+ return escapeIdent ( this . name ) + "(" + this . value . map ( x => x . toSource ( ) ) . join ( "" ) + ")" ;
14401436 }
14411437}
14421438
0 commit comments