git.shiar.nl
/
sheet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b348364
)
tools: strip multiline comments in light.css
author
Mischa POSLAWSKY
<perl@shiar.org>
Tue, 20 Feb 2018 00:05:31 +0000
(
01:05
+0100)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Mon, 5 Mar 2018 22:51:17 +0000
(23:51 +0100)
Outcommented code was added in commit
v1.10-43-g61fa0d2d3c
(2017-07-17)
[keys: even smaller keyboard style for mobile].
tools/stripcss
patch
|
blob
|
history
diff --git
a/tools/stripcss
b/tools/stripcss
index 4b41f012ad1b6ed5906e7a8d559f205922d6316f..69156c4b2be2a29816c065d2c59874a1b103e097 100755
(executable)
--- a/
tools/stripcss
+++ b/
tools/stripcss
@@
-4,6
+4,7
@@
use warnings;
while (<>) {
s!\s*/\*.*\*/\Z!!; # comments
+ s!/\*.*!! .. s!.*?/\*!! and next; # multiline comments
s/^\s*//; # indentation and empty lines
s/\h+/ /g; # alignment
s/:\K\h//; # separators