git.shiar.nl
/
sheet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
unicode: colour blocks row of hues in unicode 12.0
[sheet.git]
/
tools
/
stripcss
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