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
seahorcesolnsseahorcesolns 

Print PDF Task Button Displays Comments in Plain Text

I created a button on the Task object that will create a VF page rendered as a PDF to print out the task details.  The Comments field comes out smooshed together in plain text instead of the format shown on the task detail page.  Is there any way to keep the formatting in the VF page?

Best Answer chosen by Admin (Salesforce Developers) 
colemabcolemab

If you are using:

 

{!Opportunity.Name}

 

 

Then try:

 

<apex:outputfield value="{!Opportunity.Name}" />

 

All Answers

colemabcolemab

If you are using:

 

{!Opportunity.Name}

 

 

Then try:

 

<apex:outputfield value="{!Opportunity.Name}" />

 

This was selected as the best answer
seahorcesolnsseahorcesolns

Wow, rookie mistake.  I need a vacation!

 

Thanks for your help.