Try to fix metadata stuff again (does not work)
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user