mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
PML Input: break if opening quote is not found when getting tag value.
This commit is contained in:
parent
71c4beccfc
commit
63e2876f76
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user