Commit 7bc92442 authored by Stepan Balazik's avatar Stepan Balazik

converter.py: fix ignoring comments for real

parent 9e3ab4ed
Pipeline #43100 passed with stages
in 48 seconds
......@@ -68,7 +68,7 @@ class Converter:
if "#" in line and ";" not in line:
nocomment_line, comment = line.split("#", 2)
elif "#" not in line and ";" in line:
nocomment_line, comment = line.split(";")
nocomment_line, comment = line.split(";", 2)
elif "#" in line and ";" in line:
if line.find("#") < line.find(";"):
nocomment_line, comment = line.split("#", 2)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment