git.shiar.nl
/
sheet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
word edit: common function to format form input
[sheet.git]
/
tools
/
stripcss
1
#!/usr/bin/env perl
2
use 5.014;
3
use warnings;
4
5
while (<>) {
6
s!\s*/\*.*\*/\Z!!; # comments
7
s!/\*.*!! .. s!.*?/\*!! and next; # multiline comments
8
s/^\s*//; # indentation and empty lines
9
s/\h+/ /g; # alignment
10
s/:\K\h//; # separators
11
print;
12
}