From: Vladimír Vondruš Date: Mon, 23 Oct 2017 07:12:46 +0000 (+0200) Subject: css: ignore empty lines and comments when compiling. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=1bddf0d0f67d4f9eb87afcb64c0ee0b95c903b78;p=blog.git css: ignore empty lines and comments when compiling. --- diff --git a/css/postprocess.py b/css/postprocess.py index 5d9b5f17..6ab1deb3 100755 --- 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)