Skip to content

Commit 111e6c5

Browse files
committed
[tools/xmlparser] Enable custom stylesheet
1 parent 6cd6a8a commit 111e6c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

odml/tools/xmlparser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def write_file(self, filename, local_style=False, custom_template=False):
140140

141141
with open(filename, "w") as file:
142142
file.write("%s\n" % XML_HEADER)
143-
if not local_style:
143+
if not local_style and not custom_template:
144144
file.write("%s\n" % EXTERNAL_STYLE_HEADER)
145145
else:
146146
file.write("%s\n" % INFILE_STYLE_HEADER)

0 commit comments

Comments
 (0)