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
# markup is invalid. We will stop looking for the value
# and continue to hopefully not lose any data.
break;
break
elif state == 1:
if c == '"':
state = 2
elif c != ' ':
# " should always follow = but we will allow for blank
# space after the =.
break
elif state == 2:
if c == '"':
state = 3