From cf2a80b3907b4679e5f3963bc6b25095efa5428b Mon Sep 17 00:00:00 2001 From: Midgard Date: Sun, 18 Dec 2022 23:03:27 +0100 Subject: [PATCH] Fix truncating --- osm_wikidata_check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osm_wikidata_check.py b/osm_wikidata_check.py index 4a9f20b..9eec972 100755 --- a/osm_wikidata_check.py +++ b/osm_wikidata_check.py @@ -78,7 +78,7 @@ try: labels = data.get("labels") or data["lemmas"] label = (labels.get("nl") or labels["en"])["value"] if len(label) > 46: - label = f"{label:>45}…" + label = f"{label:>.45}…" print(f"{wd_id:>15} | {redirect:>15} | {label}") finally: