You need to sign in to do that
Don't have an account?
Erica Cox
Line breaks in body of Notes object
Is there a way to display the line breaks that a user enters in the body of a Notes object? This is a custom VF page, in which the text input code is:
Item1
Item2
The result is:
Item1 Item2
<apex:inputTextArea value="{!newCaseConsultationNote.note.body}" label="Note Body" styleClass="noteTextArea" />and the output code:
<apex:outputPanel layout="block" styleClass="noteBodyStyle"> <apex:outputText value="{!ccNote.note.body}" /> </apex:outputPanel>The style classes are very basic:
.noteBodyStyle { margin-left:15px; font-size: 95%; } .noteTextArea { width:75%; height:30px;The problem is that when the user enters the following:
Item1
Item2
The result is:
Item1 Item2
https://developer.salesforce.com/forums?id=906F000000096RmIAI
And apex:outputText escape="false"
Hope this works for you.