Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
how to break the lines in pdf format?
yaragallamurali
<p>I am using the following code in text component. it is set to html.</p>
<pre class="_prettyXprint _lang-">
<VALUE-OF>(row["ReferenceValues"]).replace("\n", "<br>")</VALUE-OF>
</pre>
<p>The reference values are coming from the database. To display the line breaks properly i am replacing the "\n" to "<br>". but instead of breaking into new line it is displaying "<br>" itself in the text. How can i break them into separate lines? how can i preserve the line breaks?</p>
Find more posts tagged with
Comments
yaragallamurali
<p>The problem got solved with the following in place.</p>
<pre class="_prettyXprint _lang-">
<VALUE-OF format="HTML">(row["ReferenceValues"]).replace("\n", "<br>")</VALUE-OF>
</pre>
JFreeman
<p>Thank you for providing the solution to the issue you were facing.</p>
<p>I'm glad to hear you got it resolved.</p>
<p> </p>
<p>Let us know if you have additional questions.</p>