You need to sign in to do that
Don't have an account?
valeria 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>
<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>
If this help please mark this as best answer
Thanks
Siddharth
OSI Consulting