From 5eefa42b416a8e8cc674ba2f1c7b3d586ace89e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Wed, 4 Sep 2024 13:00:10 +0200 Subject: [PATCH] Replace newlines in description and inscription by
--- culture.json | 2 +- detailsBody.html | 2 +- historic.json | 2 +- memorial.json | 2 +- popupBody.html | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/culture.json b/culture.json index ddb6417..1034039 100644 --- a/culture.json +++ b/culture.json @@ -81,7 +81,7 @@ "
  • ", " ", " {{ keyTrans('inscription') }}:", - " {{ localizedTag(tags, 'inscription') }}", + " {{ localizedTag(tags, 'inscription')|nl2br }}", "
  • ", "{% elseif attribute(tags, 'inscription:url') %}", "
  • ", diff --git a/detailsBody.html b/detailsBody.html index 4cf1329..56daf12 100644 --- a/detailsBody.html +++ b/detailsBody.html @@ -3,7 +3,7 @@ {% if tags.description or hasDescription %}
  • - {{ localizedTag(tags, 'description')|default(attribute(tags, 'description:' ~ hasDescription|keys[0])) }} + {{ localizedTag(tags, 'description')|default(attribute(tags, 'description:' ~ hasDescription|keys[0]))|nl2br }}
  • {% endif %} diff --git a/historic.json b/historic.json index f4eee9c..99fab6c 100644 --- a/historic.json +++ b/historic.json @@ -64,7 +64,7 @@ "
  • ", " ", " {{ keyTrans('inscription') }}:", - " {{ localizedTag(tags, 'inscription') }}", + " {{ localizedTag(tags, 'inscription')|nl2br }}", "
  • ", "{% elseif attribute(tags, 'inscription:url') %}", "
  • ", diff --git a/memorial.json b/memorial.json index 100f5d7..8fdfb6e 100644 --- a/memorial.json +++ b/memorial.json @@ -52,7 +52,7 @@ "
  • ", " ", " {{ keyTrans('inscription') }}:", - " {{ localizedTag(tags, 'inscription') }}", + " {{ localizedTag(tags, 'inscription')|nl2br }}", "
  • ", "{% elseif attribute(tags, 'inscription:url') %}", "
  • ", diff --git a/popupBody.html b/popupBody.html index 462f113..9ec1368 100644 --- a/popupBody.html +++ b/popupBody.html @@ -3,7 +3,7 @@ {% if tags.description or hasDescription %}
  • - {{ localizedTag(tags, 'description')|default(attribute(tags, 'description:' ~ hasDescription|keys[0])) }} + {{ localizedTag(tags, 'description')|default(attribute(tags, 'description:' ~ hasDescription|keys[0]))|nl2br }}
  • {% endif %}