Skip to content

Commit e103b5c

Browse files
committed
Process nested content files in addition to the primary one.
Thanks to @dudanogueira for the report and initial patch.
1 parent 7c27fda commit e103b5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templated_docs/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def fill_template(template_name, context, output_format='odt'):
9797
manifest_data = ''
9898
for name in source.namelist():
9999
data = smart_str(source.read(name))
100-
if name in ('content.xml', 'styles.xml'):
100+
if any(name.endswith(file) for file in ('content.xml', 'styles.xml')):
101101
template = Template(fix_inline_tags(data))
102102
data = template.render(context)
103103
elif name == 'META-INF/manifest.xml':

0 commit comments

Comments
 (0)