[ovs-dev] [PATCH] xml2nroff: Allow comments in block XML.
Ben Pfaff
blp at nicira.com
Sun Jul 12 18:59:28 UTC 2015
Signed-off-by: Ben Pfaff <blp at nicira.com>
---
python/build/nroff.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/python/build/nroff.py b/python/build/nroff.py
index 166f2a4..778ce0f 100644
--- a/python/build/nroff.py
+++ b/python/build/nroff.py
@@ -276,6 +276,8 @@ def block_xml_to_nroff(nodes, para='.PP'):
s += diagram_to_nroff(node.childNodes, para)
else:
s += inline_xml_to_nroff(node, r'\fR')
+ elif node.nodeType == node.COMMENT_NODE:
+ pass
else:
raise error.Error("unknown node %s in block xml" % node)
if s != "" and not s.endswith('\n'):
--
2.1.3
More information about the dev
mailing list