From 7202883c3ab3c8c6c6067ef6d59ece8aa942c28d Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sun, 12 Jul 2015 11:59:17 -0700 Subject: [PATCH] xml2nroff: Allow comments in block XML. Signed-off-by: Ben Pfaff Acked-by: Justin Pettit --- python/build/nroff.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/build/nroff.py b/python/build/nroff.py index 68d2b4628..6d22d4676 100644 --- a/python/build/nroff.py +++ b/python/build/nroff.py @@ -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'):