Suggest fixing unbalanced quotes in a bit less cases. Fixes #4501
parent
7f9504d14d
commit
64bbeb9d24
|
@ -390,7 +390,6 @@ Or:
|
||||||
return msg
|
return msg
|
||||||
else:
|
else:
|
||||||
parts = probline.split(":")
|
parts = probline.split(":")
|
||||||
print parts
|
|
||||||
if len(parts) > 1:
|
if len(parts) > 1:
|
||||||
middle = parts[1].strip()
|
middle = parts[1].strip()
|
||||||
match = False
|
match = False
|
||||||
|
@ -399,9 +398,8 @@ Or:
|
||||||
match = True
|
match = True
|
||||||
elif middle.startswith('"') and not middle.endswith('"'):
|
elif middle.startswith('"') and not middle.endswith('"'):
|
||||||
match = True
|
match = True
|
||||||
if middle[0] in [ '"', "'" ] and middle[-1] in [ '"', "'" ]:
|
if middle[0] in [ '"', "'" ] and middle[-1] in [ '"', "'" ] and probline.count("'") > 2 or probline.count("'") > 2:
|
||||||
unbalanced = True
|
unbalanced = True
|
||||||
|
|
||||||
if match:
|
if match:
|
||||||
msg = msg + """
|
msg = msg + """
|
||||||
This one looks easy to fix. It seems that there is a value started
|
This one looks easy to fix. It seems that there is a value started
|
||||||
|
|
Loading…
Reference in New Issue