Commit 25ef5409 authored by Philipp Zschumme's avatar Philipp Zschumme
Browse files

Merge branch 'fix_unmatched' into 'master'

Fix unmatched text or elements and empty sections in PDF

See merge request !5
parents fa836b49 bbaafb7c
Pipeline #1651 passed with stages
in 10 seconds
......@@ -528,4 +528,7 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="*"/>
<xsl:template match="text()" mode="toc"/>
</xsl:transform>
......@@ -57,7 +57,7 @@
<xsl:text>}</xsl:text>
</xsl:template>
<xsl:template match="section">
<xsl:template match="section[program|section|struct-ref]">
<xsl:choose>
<xsl:when test="count(ancestor::section) = 0">
<xsl:text>\section{</xsl:text>
......@@ -628,4 +628,6 @@
</xsl:choose>
</xsl:template>
<xsl:template match="*"/>
<xsl:template match="text()" mode="toc"/>
</xsl:stylesheet>
Supports Markdown
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