Update tvsp.xsl

Use 'normalize-space()' to remove linebreaks and double space
This commit is contained in:
MegaV0lt
2020-12-07 14:26:24 +01:00
committed by GitHub
parent 5ab70b9177
commit f362115d31

View File

@@ -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>