diff options
author | defanor <defanor@uberspace.net> | 2019-06-21 17:37:35 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2019-06-21 17:37:35 +0300 |
commit | cd3af799d770b752ea9f168d2b5266c85dafb6ec (patch) | |
tree | 7960b1c24290a91ea99e5cb2b99ad2009971d775 | |
parent | 5bd02d6b80fe7825f7ece3f5a80dbfec62b2de87 (diff) |
Avoid non-ASCII characters in date ranges
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.xsl | 4 |
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> |