RTF Input: Fix handling of internal links

This commit is contained in:
Kovid Goyal 2011-09-10 09:04:01 -06:00
parent fe9e36d030
commit 181d0065b6

View File

@ -445,9 +445,7 @@
<xsl:template match = "rtf:field[@type='hyperlink']">
<xsl:element name ="a">
<xsl:attribute name = "href">
<xsl:value-of select = "@link"/>
</xsl:attribute>
<xsl:attribute name = "href"><xsl:if test="not(contains(@link, '/'))">#</xsl:if><xsl:value-of select = "@link"/></xsl:attribute>
<xsl:apply-templates/>
</xsl:element>
</xsl:template>