Skip to content
Snippets Groups Projects
Commit 4bae9a11 authored by Kristian Klausen's avatar Kristian Klausen :tada:
Browse files

Also match https://bugs.archlinux.org/task/ hrefs with leading whitespace

parent 804881b1
No related branches found
No related tags found
No related merge requests found
Pipeline #6175 canceled
......@@ -8,8 +8,9 @@
</xsl:template>
<!-- Rewrite all href="https://bugs.archlinux.org/task/<id>" to "<id>.html" -->
<xsl:template match="a/@href[starts-with(., 'https://bugs.archlinux.org/task/') and not(contains(., 'getfile'))]">
<xsl:template match="a/@href[starts-with(normalize-space(.), 'https://bugs.archlinux.org/task/') and not(contains(., 'getfile'))]">
<xsl:attribute name="href">
<!-- -->
<xsl:value-of select="concat(substring-after(translate(. , '&#xA;', ''), 'https://bugs.archlinux.org/task/'), '.html')"/>
</xsl:attribute>
</xsl:template>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment