Skip to content

Commit 99f6bc1

Browse files
committed
Fix ACE export
1 parent dd90b51 commit 99f6bc1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ace/export.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,16 +162,17 @@ def export_database(db, foldername, skip_empty=True, table_html=False):
162162
json.dump(export_md, f)
163163

164164
if table_html:
165+
print("Saving!")
165166
# Save table HTML files if available
166167
tables_dir = foldername / 'tables'
167168
tables_dir.mkdir(parents=True, exist_ok=True)
168169

169170
for art in articles:
170171
art_dir = tables_dir / str(art.id)
171-
art_dir.mkdir(parents=True, exist_ok=True)
172172

173173
for t in art.tables:
174174
if t.input_html:
175+
art_dir.mkdir(parents=True, exist_ok=True)
175176
table_file = art_dir / f"{t.id}.html"
176177
with table_file.open('w', encoding='utf-8') as f:
177178
f.write(t.input_html)

0 commit comments

Comments
 (0)