Fix spacing around arrows

This commit is contained in:
Alwinfy 2022-05-21 22:06:52 -04:00
parent 7b6df0d696
commit 796d894dd0
No known key found for this signature in database
GPG key ID: 2CCB99445F0C949E

View file

@ -456,7 +456,9 @@ def write_page(out, pageid, page):
with out.pair_tag("h4", clazz="pattern-title"):
inp = page.get("input", None) or ""
oup = page.get("output", None) or ""
out.text(f"{page['name']} ({inp} \u2192 {oup})")
pipe = f"{inp} \u2192 {oup}".strip()
suffix = f" ({pipe})" if inp or oup else ""
out.text(f"{page['name']}{suffix}")
if anchor_id:
with out.pair_tag("a", href="#" + anchor_id, clazz="permalink small"):
out.empty_pair_tag("i", clazz="bi bi-link-45deg")