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
valeria jasarevicvaleria jasarevic 

Rich Text Field into Visualforce need formatting!

I have a Visualforce PDF quote that is taking informaiton from a field.  However it is not implementing the breaks or next line formatting.  I basically get a run on sentence which is confusing. (the field is !line.Description__c)  Here is the code that controlls this particular field.

<tr>
           <apex:repeat value="{!Opportunity.OpportunityLineItems}" var="line"> <tr>
            <td colspan="1"> <font face="Arial">{!line.Quantity}</font></td>
           <td colspan="2"> <font face="Arial">{!line.PricebookEntry.ProductCode}</font></td>
           <td colspan="6"> <font face="Arial" align="left" > {!line.Description__c} </font></td>
           </tr>
<tr>
          <td colspan="1" bgcolor="#fafafa"> </td>
          <td colspan="1" bgcolor="#fafafa"> </td>
          <td colspan="6" bgcolor="#fafafa"> </td>
          <td colspan="1" bgcolor="#fafafa"> </td>
          <td colspan="1" bgcolor="#fafafa"> </td>
</tr>
</apex:repeat> 
 
Siddharth83JainSiddharth83Jain
Try using <br/> in the text. If that doesn't work then you can use '\r\n'

If this help please mark this as best answer

Thanks
Siddharth
OSI Consulting