2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-30 13:58:14 +00:00

xml2nroff: Allow comments in block XML.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
This commit is contained in:
Ben Pfaff
2015-07-12 11:59:17 -07:00
parent d12fa0b881
commit 7202883c3a

View File

@@ -178,6 +178,8 @@ def block_xml_to_nroff(nodes, para='.PP'):
s += pre_to_nroff(node.childNodes, para, font)
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'):