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:
parent
f0b1a73cff
commit
fa7aa763fa
1 changed files with 3 additions and 3 deletions
|
@ -63,16 +63,16 @@
|
|||
<#if start == end>
|
||||
${start}
|
||||
<#else>
|
||||
${start} - ${end}
|
||||
${start} - ${end}
|
||||
</#if>
|
||||
<#elseif start??>
|
||||
${start} -
|
||||
<#elseif end??>
|
||||
<#if endAsRange>- </#if>${end}
|
||||
<#if endAsRange>- </#if>${end}
|
||||
</#if>
|
||||
</#local>
|
||||
|
||||
<#return interval>
|
||||
<#return interval?trim>
|
||||
</#function>
|
||||
|
||||
<#-- Functions for formatting and applying precision to a datetime
|
||||
|
|
Loading…
Add table
Reference in a new issue