Put non-breaking spaces around hyphen in datetime interval so line doesn't break in the interval. Trim the interval value returned so leading and trailing whitespace doesn't mess up the display.

This commit is contained in:
rjy7 2011-02-09 15:00:35 +00:00
parent f0b1a73cff
commit fa7aa763fa

View file

@ -63,16 +63,16 @@
<#if start == end>
${start}
<#else>
${start} - ${end}
${start}&nbsp;-&nbsp;${end}
</#if>
<#elseif start??>
${start} -
<#elseif end??>
<#if endAsRange>- </#if>${end}
<#if endAsRange>-&nbsp;</#if>${end}
</#if>
</#local>
<#return interval>
<#return interval?trim>
</#function>
<#-- Functions for formatting and applying precision to a datetime