Strip attributes for stack checks even when there's no comment.
This commit is contained in:
parent
0eef60de3b
commit
0ac71358e9
1 changed files with 2 additions and 2 deletions
|
@ -1010,8 +1010,8 @@ def translator(filename, mapxforms, textxform):
|
|||
attribute = instance.group(1)
|
||||
value = instance.group(2)
|
||||
if '#' in value:
|
||||
value = value.split("#")[0].strip()
|
||||
tagstack[-1][1][attribute] = value
|
||||
value = value.split("#")[0]
|
||||
tagstack[-1][1][attribute] = value.strip()
|
||||
if validate:
|
||||
validate_stack(tagstack, filename, lineno)
|
||||
if "wmllint: validate-on" in comment:
|
||||
|
|
Loading…
Add table
Reference in a new issue