Skip to content

Commit cf1ea53

Browse files
committed
[tools/xmlparser] Use const in general XML header
The general XMLWriter header required for the ODMLWriter now also uses the new constant default XML and XSL header strings.
1 parent 5d5de72 commit cf1ea53

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

odml/tools/xmlparser.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,7 @@ class XMLWriter:
7575
"""
7676
Creates XML nodes storing the information of an odML Document
7777
"""
78-
header = """<?xml version="1.0" encoding="UTF-8"?>
79-
<?xml-stylesheet type="text/xsl" href="odmlDocument.xsl"?>
80-
"""
78+
header = "%s\n%s\n" % (XML_HEADER, EXTERNAL_STYLE_HEADER)
8179

8280
def __init__(self, odml_document):
8381
self.doc = odml_document

0 commit comments

Comments
 (0)