Issue while rendering text with space after <BR>

Sachin RJ
Sachin RJ Member
edited February 11, 2022 in Analytics #1
<p>Hi All,</p><p> </p><p>We are facing one issue while rendering text containing space after <BR > tag.</p><p> </p><p>We are using dynamic text element to render the text.</p><p> </p><p>Issue we are facing is, if there is some space(White space), after <BR> tag, this space is visible in report, but it is not visible in editor we are using, as ideally in HTML, this white space should not be visible.</p><p> </p><p>PFB text to replacate the issue :</p><p> </p><p>Text :</p><p> </p><p><HTML><HEAD><META http-equiv="Content-Type" content="text/html; charset=UTF-8"></HEAD><BODY>&nbsp;<BR>Test1&nbsp;<BR>Test2&nbsp;<BR> Test3<BR>Test4&nbsp;<BR>Test5</BODY></HTML></p><p> </p><p>Please let me know if there is any resolution for the same.</p>

Comments

  • <p>The difference is that HTML (and browsers) ignore leading spaces. PDF and other outputs will not. My best suggestion is to perform some processing on the string to remove the leading spaces. </p>