Merge pull request #3911 from LovCAPONE/bug_3903_fix

Fix wmlparser3 considers "_" part of attribute value
This commit is contained in:
Lovens Weche 2019-02-11 14:48:00 -05:00 committed by GitHub
commit 7976d69973
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -519,7 +519,7 @@ class Parser:
self.handle_attribute(line)
else:
for i, segment in enumerate(line.split(b"+")):
segment = segment.lstrip(b" ")
segment = segment.lstrip(b" \t")
if i > 0:
# If the last segment is empty (there was a plus sign