PML Input: break if opening quote is not found when getting tag value.

This commit is contained in:
John Schember 2009-11-28 17:34:30 -05:00
parent 71c4beccfc
commit 63e2876f76

View File

@ -375,10 +375,14 @@ class PML_HTMLizer(object):
# than a space or = after the code then we can assume the # than a space or = after the code then we can assume the
# markup is invalid. We will stop looking for the value # markup is invalid. We will stop looking for the value
# and continue to hopefully not lose any data. # and continue to hopefully not lose any data.
break; break
elif state == 1: elif state == 1:
if c == '"': if c == '"':
state = 2 state = 2
elif c != ' ':
# " should always follow = but we will allow for blank
# space after the =.
break
elif state == 2: elif state == 2:
if c == '"': if c == '"':
state = 3 state = 3