$Id$
$Log$
+Revision 1.5 2007/02/02 20:04:28 jonathan.blake
+Correction to handling line elements
+
Revision 1.4 2006/12/20 00:15:04 jonathan.blake
Updated to handle the new capabilities in version 0.12.1 of the Gamebook DTD.
</xsl:template>
<xsl:template match="line">
- <xsl:apply-templates /><br />
+ <xsl:apply-templates />
+ <xsl:if test="position( ) != last( )"><br /></xsl:if>
</xsl:template>
<xsl:template match="br">
<xsl:template match="ch.minus">−</xsl:template><!-- mathematical minus -->
<xsl:template match="ch.endash">–</xsl:template><!-- endash -->
<xsl:template match="ch.emdash">—</xsl:template><!-- emdash -->
-<xsl:template match="ch.ellips"> …</xsl:template><!-- ellipsis -->
-<xsl:template match="ch.lellips">… </xsl:template><!-- left ellipsis, used at the beginning of edited material -->
+<xsl:template match="ch.ellips">…</xsl:template><!-- ellipsis -->
+<xsl:template match="ch.lellips">…</xsl:template><!-- left ellipsis, used at the beginning of edited material -->
<xsl:template match="ch.blankline">_______</xsl:template><!-- blank line to be filled in -->
<xsl:template match="ch.percent"><xsl:text>%</xsl:text></xsl:template><!-- percent sign -->
<xsl:template match="ch.thinspace"><xsl:text> </xsl:text></xsl:template><!-- small horizontal space for use between adjacent quotation marks - added mainly for LaTeX's sake -->