From: <ba...@us...> - 2008-07-15 01:17:54
|
Revision: 8087 http://docbook.svn.sourceforge.net/docbook/?rev=8087&view=rev Author: balls Date: 2008-07-14 18:17:52 -0700 (Mon, 14 Jul 2008) Log Message: ----------- Eliminate empty paragraphs due to section breaks Modified Paths: -------------- trunk/xsl/roundtrip/wordml2normalise.xsl Modified: trunk/xsl/roundtrip/wordml2normalise.xsl =================================================================== --- trunk/xsl/roundtrip/wordml2normalise.xsl 2008-07-14 08:51:10 UTC (rev 8086) +++ trunk/xsl/roundtrip/wordml2normalise.xsl 2008-07-15 01:17:52 UTC (rev 8087) @@ -55,6 +55,12 @@ <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'> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |