fix: handle command file comments properly
This commit is contained in:
parent
ce9214f537
commit
111def32bf
1 changed files with 1 additions and 3 deletions
|
@ -68,9 +68,7 @@ class SRTMerger:
|
||||||
def split_line(line):
|
def split_line(line):
|
||||||
line = line.strip()
|
line = line.strip()
|
||||||
parts = []
|
parts = []
|
||||||
for part in shlex.split(line):
|
for part in shlex.split(line, comments = True):
|
||||||
if part.startswith('#'):
|
|
||||||
break
|
|
||||||
parts.append(part)
|
parts.append(part)
|
||||||
return parts
|
return parts
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue