From: Antonio Ospite Date: Tue, 3 Apr 2018 16:11:04 +0000 (+0200) Subject: rss_converter_instagram.com.xsl: use the screen name in item titles X-Git-Tag: v1.3.0~9 X-Git-Url: https://git.ao2.it/tweeper.git/commitdiff_plain/6e2aff201c8017b2076020cd12ec723cbdba6aae rss_converter_instagram.com.xsl: use the screen name in item titles The user name is not always defined, for example in case of locations, so use the screen name in item titles. --- diff --git a/src/rss_converter_instagram.com.xsl b/src/rss_converter_instagram.com.xsl index 4045224..bd67951 100644 --- a/src/rss_converter_instagram.com.xsl +++ b/src/rss_converter_instagram.com.xsl @@ -67,7 +67,7 @@ <xsl:variable name="title-length" select="140"/> - <xsl:variable name="item-content-title" select="normalize-space(concat($user-name, ': ', $item-content-caption))"/> + <xsl:variable name="item-content-title" select="normalize-space(concat($screen-name, ': ', $item-content-caption))"/> <!-- ellipsize, inspired from http://stackoverflow.com/questions/13622338 --> <xsl:choose> <xsl:when test="string-length($item-content-title) > $title-length">