mirror of
https://github.com/chriszero/epgd-plugin-tvsp.git
synced 2025-12-26 23:26:53 +01:00
Update tvsp.xsl
Use 'normalize-space()' to remove linebreaks and double space
This commit is contained in:
@@ -92,8 +92,8 @@
|
||||
<xsl:if test="string-length(director)"><director><xsl:value-of select="director"/></director></xsl:if>
|
||||
<xsl:if test="string-length(anchorman)"><moderator><xsl:value-of select="anchorman"/></moderator></xsl:if>
|
||||
<xsl:if test="string-length(actors)">
|
||||
<!-- Ersetzen von \n durch ' ' und entfernen von leeren Klammern. Und zum Schluß noch evt. doppelte Leerzeichen -->
|
||||
<actor><xsl:value-of select="str:replace(str:replace(str:replace(actors,' ()',''),'\n',' '),' ',' ')"/></actor>
|
||||
<!-- Ersetzen von Sonderzeichen (Zeilenumbruch, Tab, …) durch Leerzeichen und entfernen von leeren Klammern () -->
|
||||
<actor><xsl:value-of select="normalize-space(str:replace(actors, ' ()', ''))"/></actor>
|
||||
</xsl:if>
|
||||
<xsl:if test="string-length(studio_guests)"><guest><xsl:value-of select="studio_guests"/></guest></xsl:if>
|
||||
<xsl:if test="string-length(authorComment)"><commentator><xsl:value-of select="authorComment"/></commentator></xsl:if>
|
||||
|
||||
Reference in New Issue
Block a user