From 2ad04e848aa8a70264d03e9640629c27a0203c2e Mon Sep 17 00:00:00 2001 From: anhefti Date: Thu, 24 Jun 2021 10:58:51 +0200 Subject: [PATCH] SEBSERV-58 fixed point 1 --- .../ch/ethz/seb/sebserver/gui/content/IndicatorForm.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/ch/ethz/seb/sebserver/gui/content/IndicatorForm.java b/src/main/java/ch/ethz/seb/sebserver/gui/content/IndicatorForm.java index 9f140275..d39cf128 100644 --- a/src/main/java/ch/ethz/seb/sebserver/gui/content/IndicatorForm.java +++ b/src/main/java/ch/ethz/seb/sebserver/gui/content/IndicatorForm.java @@ -159,7 +159,7 @@ public class IndicatorForm implements TemplateComposer { FORM_DESC_TEXT_KEY, typeDescription) .asArea() - .asHTML(true) + //.asHTML(true) .readonly(true) .withInputSpan(6)) @@ -201,9 +201,10 @@ public class IndicatorForm implements TemplateComposer { private void updateForm(final Form form) { final String typeValue = form.getFieldValue(Domain.INDICATOR.ATTR_TYPE); if (StringUtils.isNotBlank(typeValue)) { + final String text = this.i18nSupport.getText(INDICATOR_TYPE_DESC_PREFIX + typeValue); form.setFieldValue( TYPE_DESCRIPTION_FIELD_NAME, - this.i18nSupport.getText(INDICATOR_TYPE_DESC_PREFIX + typeValue)); + Utils.formatLineBreaks(text)); final IndicatorType type = IndicatorType.valueOf(typeValue); form.setFieldVisible(type.tags && !type.tagsReadonly, Domain.INDICATOR.ATTR_TAGS); if (!type.tags || type.tagsReadonly) {