Add test case for rendering short durations, use non-breaking spaces
parent
f43c092914
commit
d8b3724c8c
|
@ -55,17 +55,15 @@
|
|||
</xsl:attribute>
|
||||
<xsl:value-of select="./duration/start/text()" />
|
||||
</time>
|
||||
to
|
||||
<xsl:choose>
|
||||
<xsl:when test="./duration/end">
|
||||
<time>
|
||||
<xsl:attribute name="datetime">
|
||||
<xsl:value-of select="./duration/end[@datetime]" />
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="./duration/end/text()" />
|
||||
</time>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>Present</xsl:otherwise>
|
||||
<xsl:when test="./duration/start[@datetime] != ./duration/end[@datetime]"> to <time>
|
||||
<xsl:attribute name="datetime">
|
||||
<xsl:value-of select="./duration/end[@datetime]" />
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="./duration/end/text()" />
|
||||
</time>
|
||||
</xsl:when>
|
||||
<xsl:when test="not(boolean(./duration/end))"> to Present</xsl:when>
|
||||
</xsl:choose>
|
||||
</p>
|
||||
</header>
|
||||
|
|
Loading…
Reference in New Issue