+ Start a Discussion
Erica CoxErica 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:
<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


Mani RenusMani Renus
Check it..

https://developer.salesforce.com/forums?id=906F000000096RmIAI
sam sammsam samm
Add richText="true" for the apex:inputTextArea
And apex:outputText escape="false"

Hope this works for you.