Commit 7bc92442 authored by Štěpán Balážik's avatar Štěpán Balážik

converter.py: fix ignoring comments for real

parent 9e3ab4ed
Pipeline #43100 passed with stages
in 48 seconds
...@@ -68,7 +68,7 @@ class Converter: ...@@ -68,7 +68,7 @@ class Converter:
if "#" in line and ";" not in line: if "#" in line and ";" not in line:
nocomment_line, comment = line.split("#", 2) nocomment_line, comment = line.split("#", 2)
elif "#" not in line and ";" in line: elif "#" not in line and ";" in line:
nocomment_line, comment = line.split(";") nocomment_line, comment = line.split(";", 2)
elif "#" in line and ";" in line: elif "#" in line and ";" in line:
if line.find("#") < line.find(";"): if line.find("#") < line.find(";"):
nocomment_line, comment = line.split("#", 2) 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