Skip to content
Snippets Groups Projects
Commit 1cb92c5f authored by buczekp's avatar buczekp
Browse files

[LMS-1845] minor: preserve linebreaks in multiline error messages

SVN: 18419
parent 09314e01
No related branches found
No related tags found
No related merge requests found
......@@ -276,8 +276,10 @@ public final class PropertyValueRenderers
&& StringEscapeUtils.unescapeHtml(value).startsWith(
BasicConstant.ERROR_PROPERTY_PREFIX))
{
return createHtmlWidget(StringEscapeUtils.unescapeHtml(value).substring(
BasicConstant.ERROR_PROPERTY_PREFIX.length()));
String errorMsgText =
StringEscapeUtils.unescapeHtml(value).substring(
BasicConstant.ERROR_PROPERTY_PREFIX.length());
return createMultilineHtmlWidget(errorMsgText);
}
// handle normal values
switch (getDataTypeCode(object))
......@@ -329,8 +331,12 @@ public final class PropertyValueRenderers
private Widget createMultilineHtmlWidget(IEntityProperty object)
{
return MultilineStringPropertyValueRenderer
.createMultilineHtmlWidget(object.getValue());
return createMultilineHtmlWidget(object.getValue());
}
private Widget createMultilineHtmlWidget(String multilineText)
{
return MultilineStringPropertyValueRenderer.createMultilineHtmlWidget(multilineText);
}
private Widget createHtmlWidget(String html)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment