From: Antonio Ospite <ao2@ao2.it>
Date: Thu, 8 Jun 2017 13:35:27 +0000 (+0200)
Subject: rss_converter_twitter.com.xsl: strip the style attribute from HTML elements
X-Git-Tag: v1.1.0~5
X-Git-Url: https://git.ao2.it/tweeper.git/commitdiff_plain/6817108435b055272e0fff6883206ee1b386b9f6?hp=ad6d0cb44b8ea2b895658bf2b74d293b9a880ca1

rss_converter_twitter.com.xsl: strip the style attribute from HTML elements

Elements in an RSS item description are not supposed to have a style
attribute, and they don't really need to anyways, so filter it out in
the identity template.

This also fixes an issue with Twitter images being shown with a offset
in liferea.
---

diff --git a/src/rss_converter_twitter.com.xsl b/src/rss_converter_twitter.com.xsl
index 58539ae..fc250e5 100644
--- a/src/rss_converter_twitter.com.xsl
+++ b/src/rss_converter_twitter.com.xsl
@@ -35,7 +35,7 @@
     <!-- Identity transform -->
     <xsl:template match="@*|node()">
         <xsl:copy>
-            <xsl:apply-templates select="@*|node()"/>
+            <xsl:apply-templates select="@*[not(name() = 'style')]|node()"/>
         </xsl:copy>
     </xsl:template>