Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Indent floats rule corrected
  • Loading branch information
kthoden committed Apr 15, 2019
1 parent 0fc1817 commit 8c5682e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tei2eoatex.xsl
Expand Up @@ -154,7 +154,11 @@ contexts, a double replacement is performed.
<xsl:template match="tei:body//tei:p[not(ancestor::tei:note)]">
<xsl:choose>
<!-- thanks: https://stackoverflow.com/questions/28984806/xsl-check-immediate-preceding-sibling#28985405 -->
<xsl:when test="preceding-sibling::*[1][self::tei:ab[@type='chapterabstract'] | self::tei:figure] and $indentfloats">
<xsl:when test="preceding-sibling::*[1][self::tei:figure] and $indentfloats">
<xsl:text>&#x000a;&#x000a;\noindent </xsl:text>
<xsl:apply-templates />
</xsl:when>
<xsl:when test="preceding-sibling::*[1][self::tei:ab[@type='chapterabstract']]">
<xsl:text>&#x000a;&#x000a;\noindent </xsl:text>
<xsl:apply-templates />
</xsl:when>
Expand Down

0 comments on commit 8c5682e

Please sign in to comment.