From c0cf223d59f0ebcf2b49e4204751beb8aa75f54e Mon Sep 17 00:00:00 2001 From: Klaus Thoden Date: Thu, 5 Apr 2018 16:09:32 +0200 Subject: [PATCH] Use PI instead of XML comment --- fix_tei.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fix_tei.py b/fix_tei.py index 9e75a00..5a46262 100644 --- a/fix_tei.py +++ b/fix_tei.py @@ -226,7 +226,8 @@ def make_figure_elements(list_of_figures, figure_directory): if len(parts) == 3: logging.info("This figure contains hyperimage directions") - yenda_command = etree.Comment("Hyperimage direction: %s" % parts[2]) + yenda_command = etree.ProcessingInstruction("hyperimage", "Hyperimage direction: %s" % parts[2]) + # yenda_command = etree.Comment("Hyperimage direction: %s" % parts[2]) parent_tag.append(yenda_command) else: