diff options
author | Phy <git@phy25.com> | 2020-01-19 16:30:19 -0500 |
---|---|---|
committer | Phy <git@phy25.com> | 2020-01-19 16:30:19 -0500 |
commit | 2f5645efb6338abcacae559d6f5d3eeeca978051 (patch) | |
tree | 12232afa4373910d3d68c33494ce9530a494589b /lib | |
parent | 74be1290b92e23fd862a630226f5193bc2289f26 (diff) | |
download | dokuwiki-2f5645efb6338abcacae559d6f5d3eeeca978051.tar.gz dokuwiki-2f5645efb6338abcacae559d6f5d3eeeca978051.zip |
add trim, and polish test_quotes of css_compress, again
An edge case that space at the beginning won't get removed.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/exe/css.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/exe/css.php b/lib/exe/css.php index 10ece7ea2..2da838ae5 100644 --- a/lib/exe/css.php +++ b/lib/exe/css.php @@ -616,6 +616,7 @@ function css_compress($css){ }; $css = preg_replace_callback('/"STR(\d+)"/', $quote_back_cb, $css); + $css = trim($css); return $css; } |