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
Ralph PenceRalph Pence 

Using line breaks in a VisualForce email?

In my email I'm trying to display various fields, but only if a certain checkbox is marked. I was able to get the fields to diplay correctly, but I want to create a line break after a field is diplayed on the page.

Here's my code:

    <apex:repeat var="cx" value="{!relatedTo.OpenActivities}">
    <p><b>Outstanding Requirements:</b> {!cx.Subject}<br></br>
        <b>Follow-up Date: </b> 
              <apex:outputText value="{0,date,MM'/'dd'/'yyyy}">
              <apex:param value="{!cx.ActivityDate}" />
    <apex:outputField value="{!cx.Activity__c}" rendered="{!NOT(cx.Activity_Completed__c)}"/>
    <apex:outputField value="{!cx.Activity1__c}" rendered="{!NOT(cx.Activity1_Completed__c)}"/>
    <apex:outputField value="{!cx.Activity2__c}" rendered="{!NOT(cx.Activity2_Completed__c)}"/>
    <apex:outputField value="{!cx.Activity3__c}" rendered="{!NOT(cx.Activity3_Completed__c)}"/>
    <apex:outputField value="{!cx.Activity4__c}" rendered="{!NOT(cx.Activity4_Completed__c)}"/>
Chris ShadeChris Shade
Have you tried <br/>?
Ralph PenceRalph Pence
Yes, but I only want the line break to appear when a value is displayed. Otherwise I end up with blank line breaks