diff options
author | Bryan Bishop <kanzure@gmail.com> | 2012-04-26 10:56:21 -0500 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2012-04-26 10:56:21 -0500 |
commit | d358b39024588daba6e206578ccfd5f49475ded2 (patch) | |
tree | 765e44cdd393d272c71b2dd973683f0878d00581 | |
parent | 216a7ac1ecde92e366e02f74e88f28eebf33b903 (diff) |
skip lines wth no quotes in textpre.py
-rw-r--r-- | textpre.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/textpre.py b/textpre.py index e7f191a95..58412d8ed 100644 --- a/textpre.py +++ b/textpre.py @@ -266,6 +266,11 @@ chars = { } for l in sys.stdin: + # skip lines with no quotes + if "\"" not in l: + sys.stdout.write(l) + continue + # strip comments asm = "" comment = None |