I have a UI that has a text area for User Comments/Feedback, and the response is mapped to a dynamic form that is generated when the form is submitted. Now, the User comments should be displayed in 'Justify Alignment' on the document. But there is a glitch, that is - if the user enters his comments in points or paragraphs, then on the document the newline between the points/paragraphs is not identified. As a result, if a sentence ends in the middle of the page, the half line is stretched along the width of the page (due to justify alignment). Is there a way to counter this issue? Can I print the text area content in justify alignment on the document, irrespective of the way the user enters its comments?
if you add paragraph separator entities (
) to the xml source, the last line of a paragraph will be left aligned.
<text>Sed consequat, leo eget bibendum sodales, augue velit cursus nunc, quis gravida magna mi a libero.
Praesent adipiscing. Nullam nulla eros, ultricies sit amet, nonummy id, imperdiet feugiat, pede. Vestibulum facilisis, purus nec pulvinar iaculis, ligula mi congue nunc, vitae euismod ligula urna in dolor. Aenean massa.
Fusce risus nisl, viverra et, tempor et, pretium in, sapien. Curabitur nisi. Praesent metus tellus, elementum eu, semper a, adipiscing nec, purus. Fusce convallis metus id felis luctus adipiscing.
Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Etiam ultricies nisi vel augue. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo.
Aenean ut eros et nisl sagittis vestibulum. Sed libero. Proin magna. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.</text>
in my xml, and I think that is why when I enter 2 paragraphs on UI, the last line of paragraph 1 fills the text area from left to right. While the last line of my entire text (i.e. the last line of paragraph 2) is left aligned.
Could you provide a work around for the last line of paragraph 1?