Fix truncating

This commit is contained in:
Midgard 2022-12-18 23:03:27 +01:00
parent a9d5b983cd
commit cf2a80b390
Signed by: midgard
GPG key ID: 511C112F1331BBB4

View file

@ -78,7 +78,7 @@ try:
labels = data.get("labels") or data["lemmas"] labels = data.get("labels") or data["lemmas"]
label = (labels.get("nl") or labels["en"])["value"] label = (labels.get("nl") or labels["en"])["value"]
if len(label) > 46: if len(label) > 46:
label = f"{label:>45}" label = f"{label:>.45}"
print(f"{wd_id:>15} | {redirect:>15} | {label}") print(f"{wd_id:>15} | {redirect:>15} | {label}")
finally: finally: