summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordefanor <defanor@uberspace.net>2019-06-21 17:37:35 +0300
committerdefanor <defanor@uberspace.net>2019-06-21 17:37:35 +0300
commitcd3af799d770b752ea9f168d2b5266c85dafb6ec (patch)
tree7960b1c24290a91ea99e5cb2b99ad2009971d775
parent5bd02d6b80fe7825f7ece3f5a80dbfec62b2de87 (diff)
downloadhomepage-master.zip
homepage-master.tar.gz
homepage-master.tar.bz2
Avoid non-ASCII characters in date rangesHEADmaster
Plain ASCII is better supported still, and "to" is more readable as a separator for dates than an en dash.
-rw-r--r--tools/xml-to-html.xsl4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/xml-to-html.xsl b/tools/xml-to-html.xsl
index 261397f..440fc4d 100644
--- a/tools/xml-to-html.xsl
+++ b/tools/xml-to-html.xsl
@@ -85,7 +85,7 @@
<xsl:if test="not(//notes)">
<a href="https://defanor.uberspace.net/">defanor</a>,
<time><xsl:copy-of select="substring(@created,0,8)" /></time>
- <xsl:if test="substring(@created,0,8) != substring(@modified,0,8)">–<time><xsl:copy-of select="substring(@modified,0,8)" /></time></xsl:if>
+ <xsl:if test="substring(@created,0,8) != substring(@modified,0,8)"> to <time><xsl:copy-of select="substring(@modified,0,8)" /></time></xsl:if>
</xsl:if>
</footer>
</body>
@@ -125,7 +125,7 @@
<dd>
<xsl:value-of select="document/@description" />
(<time><xsl:copy-of select="substring(document/@created,0,8)" /></time>
- <xsl:if test="substring(document/@created,0,8) != substring(document/@modified,0,8)">–<time><xsl:copy-of select="substring(document/@modified,0,8)" /></time></xsl:if>)
+ <xsl:if test="substring(document/@created,0,8) != substring(document/@modified,0,8)"> to <time><xsl:copy-of select="substring(document/@modified,0,8)" /></time></xsl:if>)
</dd>
</xsl:template>