1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-27 17:15:46 +01:00

Fix some errors in :command-complete-custom. Fix some help tags not appearing.

This commit is contained in:
Kris Maglione
2011-01-19 17:54:17 -05:00
parent 067b8d2a6c
commit a0ad529424
10 changed files with 61 additions and 40 deletions

View File

@@ -352,6 +352,7 @@
<!-- HTML-ish elements {{{1 -->
<xsl:template match="dactyl:dl" mode="help-2">
<xsl:apply-templates select="@tag" mode="help-1"/>
<dl>
<column style="{@dt}"/>
<column style="{@dd}"/>
@@ -375,7 +376,11 @@
</xsl:otherwise>
</xsl:choose>
<xsl:if test="regexp:match(@topic, '^[a-zA-Z]*:', '')
and not(starts-with(@topic, 'mailto:'))">
and not(starts-with(@topic, 'mailto:') or
starts-with(@topic, 'chrome:') or
starts-with(@topic, 'resource:') or
starts-with(@topic, 'dactyl:'))">
<!-- A regexp does not work for the second test here ↑. :( -->
<xsl:attribute name="rel">external</xsl:attribute>
</xsl:if>
<xsl:apply-templates select="@*|node()" mode="help-1"/>