Find your content:

Search form

You are here

Why is the space character not displaying in this VisualForce email template?

 
Share

This:

<messaging:emailTemplate subject="Assignment for {!relatedTo.K__Resource__r.Name} Ends in {!relatedTo.K__ForecastP3EndDate__c - TODAY() -1} Days" recipientType="User" relatedToType="K__ActivityAssignment__c">

Gives this:

"Assignment for Joe Smooth Ends in 4 Days" for my email subject

But this:

<h2 style="padding: 30px 30px 30px 30px; border-bottom-style: solid; border-bottom-color: #810541; border-bottom-width: 1px; margin: 10px;">Assignment for {!relatedTo.K__Resource__r.Name} ends <apex:outputText value="{0,date,EEE MMM dd yyyy}">            <apex:param value="{!relatedTo.K__ForecastP3EndDate__c}" /></apex:outputText>.</h2>

Gives this in my email body:

"Assignment for Joe Smooth endsMon Apr 14 2014."

Anyone know how I can get a space after the word 'ends' in the second example?

Thanks.


Attribution to: finisterre
This content is remixed from stackoverflow or stackexchange. Please visit https://salesforce.stackexchange.com/questions/32412

My Block Status

My Block Content