mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-22 07:45:45 +01:00
Fix some help linking and exporting bugs.
This commit is contained in:
@@ -359,7 +359,15 @@
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="dactyl:link" mode="help-2">
|
||||
<a href="{@topic}">
|
||||
<a>
|
||||
<xsl:choose>
|
||||
<xsl:when test="regexp:match(@topic, '^([a-zA-Z]*:|[^/]*#|/)', '')">
|
||||
<xsl:attribute name="href"><xsl:value-of select="@topic"/></xsl:attribute>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:attribute name="href"><xsl:value-of select="concat('dactyl://help-tag/', @topic)"/></xsl:attribute>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:if test="regexp:match(@topic, '^[a-zA-Z]*:', '')
|
||||
and not(starts-with(@topic, 'mailto:'))">
|
||||
<xsl:attribute name="rel">external</xsl:attribute>
|
||||
|
||||
Reference in New Issue
Block a user