chiark / gitweb /
css: ignore empty lines and comments when compiling.
authorVladimír Vondruš <mosra@centrum.cz>
Mon, 23 Oct 2017 07:12:46 +0000 (09:12 +0200)
committerVladimír Vondruš <mosra@centrum.cz>
Mon, 23 Oct 2017 07:12:46 +0000 (09:12 +0200)
css/postprocess.py

index 5d9b5f178c116aeb495b1a616aa1f6de22df17c1..6ab1deb35534955a655dd5263cdd573482db296c 100755 (executable)
@@ -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)