correctly output xmlns attribute
This commit is contained in:
parent
701400d442
commit
e47bff3204
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ def write_wmap(wmap: Map, el_root: ElementTree.Element) -> None:
|
|||
|
||||
map_fields = [ff.name for ff in fields(wmap)]
|
||||
for field in map_fields:
|
||||
if field[0].isupper():
|
||||
if field[0].isupper() or field == 'xmlns':
|
||||
val = getattr(wmap, field)
|
||||
if val is None:
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue