Mercurial > libervia-backend
comparison libervia/frontends/tools/xmltools.py @ 4270:0d7bb4df2343
Reformatted code base using black.
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 19 Jun 2024 18:44:57 +0200 |
parents | 26b7ed2817da |
children |
comparison
equal
deleted
inserted
replaced
4269:64a85ce8be70 | 4270:0d7bb4df2343 |
---|---|
22 # we don't import minidom as a different class can be used in frontends | 22 # we don't import minidom as a different class can be used in frontends |
23 # (e.g. NativeDOM in Libervia) | 23 # (e.g. NativeDOM in Libervia) |
24 | 24 |
25 | 25 |
26 def inline_root(doc): | 26 def inline_root(doc): |
27 """ make the root attribute inline | 27 """make the root attribute inline |
28 @param root_node: minidom's Document compatible class | 28 @param root_node: minidom's Document compatible class |
29 @return: plain XML | 29 @return: plain XML |
30 """ | 30 """ |
31 root_elt = doc.documentElement | 31 root_elt = doc.documentElement |
32 if root_elt.hasAttribute("style"): | 32 if root_elt.hasAttribute("style"): |