mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +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:
@@ -178,6 +178,8 @@ def block_xml_to_nroff(nodes, para='.PP'):
|
|||||||
s += pre_to_nroff(node.childNodes, para, font)
|
s += pre_to_nroff(node.childNodes, para, font)
|
||||||
else:
|
else:
|
||||||
s += inline_xml_to_nroff(node, r'\fR')
|
s += inline_xml_to_nroff(node, r'\fR')
|
||||||
|
elif node.nodeType == node.COMMENT_NODE:
|
||||||
|
pass
|
||||||
else:
|
else:
|
||||||
raise error.Error("unknown node %s in block xml" % node)
|
raise error.Error("unknown node %s in block xml" % node)
|
||||||
if s != "" and not s.endswith('\n'):
|
if s != "" and not s.endswith('\n'):
|
||||||
|
Reference in New Issue
Block a user