Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add new parameter
  • Loading branch information
kthoden committed Mar 16, 2020
1 parent 36db9ee commit da7d234
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/stylesheets/tei2eoatex.xsl
Expand Up @@ -12,6 +12,7 @@
<xsl:param name="contributors" as="xs:boolean" required="no" select="false()"/>
<xsl:param name="contributorsmanual" as="xs:boolean" required="no" select="false()"/>
<xsl:param name="strictfloats" as="xs:boolean" required="no" select="false()"/>
<xsl:param name="indentafterfloats" as="xs:boolean" required="no" select="false()"/>
<xsl:param name="extranewpage" as="xs:boolean" required="no" select="false()"/>
<xsl:param name="manualpreambel" as="xs:boolean" required="no" select="false()"/>
<xsl:param name="hyphenation" as="xs:boolean" required="no" select="false()"/>
Expand Down
14 changes: 12 additions & 2 deletions src/stylesheets/tei2eoatex/eoatex_textparts.xsl
Expand Up @@ -187,13 +187,23 @@
<xsl:template match="tei:body//tei:p[not(ancestor::tei:note) and not(parent::tei:div[@type = 'letter']) and not(parent::tei:epigraph)]">
<xsl:call-template name="begin_paragraph"/>
<xsl:if test="
preceding-sibling::*[1][self::tei:figure[not(@type='hionly*')]]
or preceding-sibling::*[1][self::tei:ab[@type = 'chapterabstract']]
preceding-sibling::*[1][self::tei:ab[@type = 'chapterabstract']]
or preceding-sibling::*[1][self::tei:quote | self::tei:list]
or preceding-sibling::*[1][self::tei:milestone[@type = 'divider']]
">
<xsl:text>\noindent </xsl:text>
</xsl:if>
<xsl:if test="preceding-sibling::*[1][self::tei:figure[not(@type='hionly*')]]">
<xsl:choose>
<xsl:when test="$indentafterfloats">
<xsl:value-of select="eoa:texcomment('Not disabling indent after float.')" />
</xsl:when>
<xsl:otherwise>
<xsl:text>\noindent </xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:if>

<xsl:apply-templates />
<xsl:text>&#x000a;</xsl:text>
</xsl:template>
Expand Down

0 comments on commit da7d234

Please sign in to comment.