Merge pull request #3910 from LovCAPONE/bug_3862_fix_proper
Fix wmlparser3 creation unnecessary attributes.
This commit is contained in:
commit
515a3d6626
1 changed files with 3 additions and 4 deletions
|
@ -503,14 +503,13 @@ class Parser:
|
|||
Parse a WML fragment outside of strings.
|
||||
"""
|
||||
if not line: return
|
||||
if line.startswith(b"#textdomain "):
|
||||
self.textdomain = line[12:].strip().decode("utf8")
|
||||
return
|
||||
if not self.temp_key_nodes:
|
||||
line = line.lstrip()
|
||||
if not line: return
|
||||
|
||||
if line.startswith(b"#textdomain "):
|
||||
self.textdomain = line[12:].strip().decode("utf8")
|
||||
return
|
||||
|
||||
# Is it a tag?
|
||||
if line.startswith(b"["):
|
||||
self.handle_tag(line)
|
||||
|
|
Loading…
Add table
Reference in a new issue