]> granicus.if.org Git - docbook-dsssl/commitdiff
Eliminate empty paragraphs due to section breaks
authorSteve Ball <balls@users.sourceforge.net>
Tue, 15 Jul 2008 01:17:52 +0000 (01:17 +0000)
committerSteve Ball <balls@users.sourceforge.net>
Tue, 15 Jul 2008 01:17:52 +0000 (01:17 +0000)
xsl/roundtrip/wordml2normalise.xsl

index d00b34983f48b56637257b05551c1ab50813d59a..7dcbdd8d1e486c2db10f6d5d44b9cd5ec0335ea1 100644 (file)
       <xsl:when test='aml:annotation[@w:type = "Word.Deletion"] and
                       not(aml:annotation[@w:type != "Word.Deletion"]) and
                       count(*) = count(aml:annotation|w:pPr)'/>
+
+      <!-- Eliminate paragraphs that have no content.
+           These are section or page breaks.
+        -->
+      <xsl:when test='not(w:r|w:hlink|w:tbl)'/>
+
       <xsl:otherwise>
         <dbk:para>
           <xsl:attribute name='rnd:style'>