| commit | bf47ae7a5d3b11e616cf25663270c204d17e6671 | [log] [tgz] |
|---|---|---|
| author | Marc Kupietz <kupietz@ids-mannheim.de> | Sun Apr 14 14:21:43 2024 +0200 |
| committer | Marc Kupietz <kupietz@ids-mannheim.de> | Sun Apr 14 14:21:43 2024 +0200 |
| tree | d9022b7684c4d841a64cc68bf2ec190c7d9e3f8f | |
| parent | 10903f3978e2f10036feb68b84ccb4520399349e [diff] |
Fix headings nested in ps
diff --git a/xslt/epub2i5.xsl b/xslt/epub2i5.xsl index 4546fca..23f452a 100644 --- a/xslt/epub2i5.xsl +++ b/xslt/epub2i5.xsl
@@ -387,6 +387,9 @@ <xsl:template match="xhtml:div[not(normalize-space(replace(., ' ', ' ')))]" priority="1.0"/> + <xsl:template match="xhtml:body/xhtml:div[./xhtml:h1|./xhtml:h2|./xhtml:h3]" priority="1.0"> + <xsl:apply-templates/> + </xsl:template> <xsl:template match="xhtml:div/xhtml:div"> <p> <xsl:apply-templates/>