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:
@@ -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'):
|
||||
|
Reference in New Issue
Block a user