fix: no empty code span for a bare data directory

This commit is contained in:
Abdessamad Derraz committed 2026-10-24 02:49:23 +02:00
1 parent 866cfff4ac
commit 00bb4aa0ba
1 file changed
+3 -1
+3 -1
View File
@@ -8966,7 +8966,9 @@ def emulator_pages(
ref = dd.get("ref", "")
dest = dd.get("destination", "")
entry = (data_registry or {}).get(ref, {})
line = f"- `{ref}` > `{dest}`"
# An empty destination wrote "``", which opened a code span
# running to the next one and hid a link from the MDX pass.
line = f"- `{ref}` > `{dest}`" if dest else f"- `{ref}`"
if entry.get("description"):
line += f": {entry['description']}"
lines.append(line)