X-Git-Url: https://git.ao2.it/tweeper.git/blobdiff_plain/29e51afe9ef63c74ad8d770bd637d982ec2c85f1..01dfd03d97afd0d5d06a36af37d96892905340ad:/src/rss_converter_instagram.com.xsl?ds=sidebyside diff --git a/src/rss_converter_instagram.com.xsl b/src/rss_converter_instagram.com.xsl index 2e427b4..01bd3d1 100644 --- a/src/rss_converter_instagram.com.xsl +++ b/src/rss_converter_instagram.com.xsl @@ -24,6 +24,7 @@ exclude-result-prefixes="php"> + @@ -69,7 +70,12 @@ <xsl:variable name="title-length" select="140"/> - <xsl:variable name="item-content-title" select="normalize-space(concat($screen-name, ': ', $item-content-caption))"/> + <xsl:variable name="item-content-title"> + <xsl:if test="$show-usernames = 1"> + <xsl:value-of select="concat($screen-name, ': ')"/> + </xsl:if> + <xsl:value-of select="normalize-space($item-content-caption)"/> + </xsl:variable> <!-- ellipsize, inspired from http://stackoverflow.com/questions/13622338 --> <xsl:choose> <xsl:when test="string-length($item-content-title) > $title-length">