CSSMin: Mangle whitespace in embedded SVGs
authorRoan Kattouw <roan.kattouw@gmail.com>
Thu, 14 Sep 2017 18:32:07 +0000 (11:32 -0700)
committerKrinkle <krinklemail@gmail.com>
Tue, 19 Sep 2017 18:52:54 +0000 (18:52 +0000)
commitdfd42d2653ea9ff2ca05dab7cd6f2285abba9d08
tree53d437c63ee585b7d97f32610fb24a74a9e2e8e2
parent5e3165f0080961e637e9ed600b696786aee7eda4
CSSMin: Mangle whitespace in embedded SVGs

Convert newlines and tabs to spaces (which can be unencoded),
and consolidate runs of multiple spaces into a single space.
Also remove any leading and trailing spaces that might result
(most files end in a newline, for example).

Bug: T175318
Change-Id: Ic66c6acb37079cae84dd80ab2d5f2c829cf2df96
includes/libs/CSSMin.php
tests/phpunit/includes/libs/CSSMinTest.php