CSSMin: Re-introduce whitespace mangling in embedded SVGs
authorVolker E <volker.e@wikimedia.org>
Tue, 9 Jan 2018 02:34:22 +0000 (18:34 -0800)
committerKrinkle <krinklemail@gmail.com>
Tue, 9 Jan 2018 17:35:22 +0000 (17:35 +0000)
commit239ea7fe9fe2adbcbf79d396c1294787b72592f7
tree7a1409b71525ac080ef9a92e8b2a02992308a942
parent2cbd34dc55d5892e4ae6cd3b26ba214658857975
CSSMin: Re-introduce whitespace mangling 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).
Follow-up to Iddc98332d. This was reverted as dependency for the
original issues causing patch, but works perfectly fine.

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