chiark
/
gitweb
/
~cjwatson
/
blog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44bf93e
)
css: ignore empty lines and comments when compiling.
author
Vladimír Vondruš
<mosra@centrum.cz>
Mon, 23 Oct 2017 07:12:46 +0000
(09:12 +0200)
committer
Vladimír Vondruš
<mosra@centrum.cz>
Mon, 23 Oct 2017 07:12:46 +0000
(09:12 +0200)
css/postprocess.py
patch
|
blob
|
history
diff --git
a/css/postprocess.py
b/css/postprocess.py
index 5d9b5f178c116aeb495b1a616aa1f6de22df17c1..6ab1deb35534955a655dd5263cdd573482db296c 100755
(executable)
--- a/
css/postprocess.py
+++ b/
css/postprocess.py
@@
-84,6
+84,10
@@
def postprocess(files):
out.write("\n")
continue
+ # Comment or empty line, ignore
+ if comment_rx.match(line):
+ continue
+
# Something else, copy verbatim to the output
out.write(line)