From 2da546d1f8d234620abaa002fe4a417aad0e868c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Tue, 10 Dec 2019 04:37:11 +0100 Subject: [PATCH] Improved line breaking hack for addresses --- cards/widgets.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cards/widgets.sh b/cards/widgets.sh index a3836bf..35086eb 100755 --- a/cards/widgets.sh +++ b/cards/widgets.sh @@ -133,9 +133,10 @@ card_item(){ done ;; *)[ $cnt -gt 0 ] && printf '[h3 %s]' "$(l10n "$item")" + shy="$(printf '\302\255')" seq 1 $cnt |while read c; do printf '[span .item .%s . %s]' "$item" \ - "$(pdi_value "$card" "$item" $c |unescape |HTML)" + "$(pdi_value "$card" "$item" $c |sed -r "s;(straße|weg|damm|allee|ufer);${shy}\1;g" |unescape |HTML)" done ;; esac -- 2.39.2