function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
pvisonepvisone 

Formatting field contents of text area

I'm fairly new to salesforce and brand new to Visualforce development.  I created a Visualforce page with a tabbed layout.  One of the tabs is Notes and it displays the contents of the account.Description tex area field.  On the standard sales force page, it displays correctly with all the carriage returns.  However in the VIsualforce page it is not displaying the carriage returns.  

 

So what should look like this:

 

line one

line two

 

Line three

 

Looks like this:

 

line one line two Line three

 

How do I fix this?  Thanks!  Pat

Best Answer chosen by Admin (Salesforce Developers) 
pvisonepvisone

Figured it out.  Instead of simply viewing the field I ended up using <apex:pageBlock >, followed up by an <apex:pageBlockSection > and then <apex:outputField value="{!account.description}"/>

 

This shows the field in the same format as it is displayed in a standard salesforce page!