Commit 0ebdf39a authored by Audrey Hamelers's avatar Audrey Hamelers
parent 733f71c6
Pipeline #12954 passed with stages
in 5 minutes and 36 seconds
......@@ -1341,25 +1341,10 @@
<xsl:value-of select="@colspan"/>
</xsl:attribute>
</xsl:if>
<!-- The author-callout-style-b family applies both background and foreground colour. -->
<xsl:variable name="class">
<xsl:if test="@align">
<xsl:value-of select="concat(' table-', @align)"/>
</xsl:if>
<xsl:if test="@style and starts-with(@style, 'author-callout-style-b')">
<xsl:value-of select="concat(' ', @style)"/>
</xsl:if>
</xsl:variable>
<xsl:if test="$class != ''">
<xsl:attribute name="class">
<xsl:value-of select="substring-after($class, ' ')"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="@style and not(starts-with(@style, 'author-callout-style-b'))">
<xsl:if test="@style | @align">
<xsl:attribute name="style">
<xsl:text>text-align:</xsl:text>
<xsl:value-of select="concat(@align, ';')"/>
<xsl:value-of select="@style"/>
</xsl:attribute>
</xsl:if>
......@@ -2720,7 +2705,17 @@
<xsl:template match="list-item">
<li>
<xsl:apply-templates/>
<xsl:choose>
<xsl:when test="count(child::node()[not(normalize-space(.) = '')]) = 1 and child::node()[self::p]">
<xsl:attribute name="id">
<xsl:value-of select="child::p/@id"/>
</xsl:attribute>
<xsl:apply-templates select="child::p/child::node()"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>
</li>
</xsl:template>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment