Bug fix: download count style should only be added

once, at the end of the head section.
This commit is contained in:
John Glover 2011-12-20 13:16:28 +00:00
parent 8176247f10
commit 16d5d11b86
1 changed files with 1 additions and 2 deletions

View File

@ -91,8 +91,7 @@ class GoogleAnalyticsPlugin(SingletonPlugin):
if show_downloads:
stream = stream | Transformer('//a[contains(@class, "resource-url-analytics")]')\
.apply(download_adder)
stream = stream | Transformer('//link[@rel="stylesheet"]')\
.append(HTML(download_style))
stream = stream | Transformer('//head').append(HTML(download_style))
return stream