Support Article
Extra spaces trimmed in between words from a column
SA-8779
Summary
When values are stored using spaces in between, the extra spaces are trimmed.
Error Messages
Not Applicable.
Steps to Reproduce
1. Store some column with spaces in between.
2. Retreive values through report definition.
Root Cause
HTML rules by default truncate multiple spaces to single space.
Resolution
This issue is resolved through the following local-change:
Create a custom control with <pre> tags enclosed. This newly created custom control is used in the RepeatGrid to display the value of that specific property with multiple spaces.
Following is an example:
<%
String subj = tools.getActiveValue();
tools.putSaveValue("result", subj);
%>
<pre><pega:reference name='$save(result)' mode="NORMAL" /></pre>
However the CSS changes, this newly created control displays differently from other fields.
Published January 31, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.