Try to fix metadata stuff again (does not work)

This commit is contained in:
Kylian Schmidt
2025-07-21 15:33:33 +02:00
parent 7a9275819a
commit 465f9b6dc6
7 changed files with 26 additions and 62 deletions
+5
View File
@@ -144,6 +144,11 @@ def build_gallery(source_dir: Path, web_dir: Path,
# Resolve metadata for this specific plot
plot_metadata = resolve_metadata_for_plot(pdf_file, current_metadata)
if not plot_metadata:
plot_metadata = {}
for k, v in plot_metadata.items():
if isinstance(v, str):
plot_metadata[k] = v.replace('<', '').replace('>', '').replace('&', '').replace('"', "'")
plot_metadata_cache[pdf_file.stem] = plot_metadata
items.append({