diff options
author | Rob Austein <sra@hactrn.net> | 2012-04-13 16:01:26 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2012-04-13 16:01:26 +0000 |
commit | f4d381b2ead3a3fab4b7b0c73cdc8d3a6b4cb12d (patch) | |
tree | 60b9836b9d24055d900be3335856ec4e0091cec2 | |
parent | 28689bad86ef1cce89585cbc7a1668769ed79897 (diff) |
Remove <span class="icon"/> elements -- for some reason these leave
messes when this script is run on MacOSX, but not on FreeBSD.
Version skews of the programs involved, probably.
svn path=/branches/tk161/; revision=4412
-rw-r--r-- | buildtools/pull-doc-from-wiki.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/buildtools/pull-doc-from-wiki.py b/buildtools/pull-doc-from-wiki.py index 1154bc2d..946b01ae 100644 --- a/buildtools/pull-doc-from-wiki.py +++ b/buildtools/pull-doc-from-wiki.py @@ -219,6 +219,8 @@ xsl_get_page = lxml.etree.XSLT(lxml.etree.XML('''\ <xsl:template match="//div[contains(@class, 'wiki-toc')]"/> + <xsl:template match="//span[@class = 'icon' and not(*)]"/> + <xsl:template match="a[contains(@class, 'wiki') and starts-with(@href, '/wiki/')]"> <xsl:variable name="href"> |