]> granicus.if.org Git - docbook-dsssl/commitdiff
fix elimination of section breaks
authorSteve Ball <balls@users.sourceforge.net>
Tue, 15 Jul 2008 01:38:18 +0000 (01:38 +0000)
committerSteve Ball <balls@users.sourceforge.net>
Tue, 15 Jul 2008 01:38:18 +0000 (01:38 +0000)
xsl/roundtrip/wordml2normalise.xsl

index 7dcbdd8d1e486c2db10f6d5d44b9cd5ec0335ea1..adcadedd1881f6e023b80ecc778afcb8285258f1 100644 (file)
@@ -59,7 +59,8 @@
       <!-- Eliminate paragraphs that have no content.
            These are section or page breaks.
         -->
-      <xsl:when test='not(w:r|w:hlink|w:tbl)'/>
+      <xsl:when test='not(w:r|w:hlink|w:tbl) and
+                      w:pPr/w:sectPr'/>
 
       <xsl:otherwise>
         <dbk:para>