mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 12:19:28 +00:00
Vorlage angepasst damit Lehrinhalte auf den Freifächer Zertifikaten korrekt angezeigt werden
This commit is contained in:
@@ -362,7 +362,28 @@ xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn
|
||||
<text:p text:style-name="P22">Inhalte der Lehrveranstaltung:</text:p>
|
||||
<text:p text:style-name="P22"/>
|
||||
<text:p text:style-name="P22"/>
|
||||
<text:p text:style-name="P22"><xsl:value-of select="lehrinhalte" /></text:p>
|
||||
<text:p text:style-name="P22">
|
||||
|
||||
<xsl:call-template name="replace">
|
||||
<xsl:with-param name="string" select="lehrinhalte"/>
|
||||
</xsl:call-template>
|
||||
</text:p>
|
||||
</office:text>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
<xsl:template name="replace">
|
||||
<xsl:param name="string"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="contains($string,'\n')">
|
||||
<xsl:value-of select="substring-before($string,'\n')"/>
|
||||
<text:line-break/>
|
||||
<xsl:call-template name="replace">
|
||||
<xsl:with-param name="string" select="substring-after($string,'\n')"/>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="$string"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
||||
Reference in New Issue
Block a user