From d9d2f5fe58995005ba3048302aea222ed3f01ee4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mauro=20Ferr=C3=A3o?= Date: Fri, 8 Nov 2024 12:20:36 +0000 Subject: [PATCH] Fix text wrap for text element (#2797) relates to xibosignage/xibo#3522 --- modules/templates/global-elements.xml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/modules/templates/global-elements.xml b/modules/templates/global-elements.xml index 1b749613cc..d14cb0dff7 100644 --- a/modules/templates/global-elements.xml +++ b/modules/templates/global-elements.xml @@ -260,19 +260,14 @@ {{/if}} {{#if lineHeight}}line-height: {{lineHeight}};{{/if}} {{#if textWrap}} + white-space: break-spaces; {{#if justify}} text-align: justify; {{/if}} {{else}} white-space: nowrap; {{/if}} -"> -{{#if escapeHtml}} - {{text}} -{{else}} - {{{text}}} -{{/if}} - +">{{#if escapeHtml}}{{text}}{{else}}{{{text}}}{{/if}} ]]>