[PATCH 10/17] XHTML export: Don't print redundant styles

andrew-libreoffice.org at pileofstuff.org andrew-libreoffice.org at pileofstuff.org
Thu Aug 14 14:53:50 PDT 2014


From: Andrew Sayers <andrew-libreoffice.org at pileofstuff.org>

---
 filter/source/xslt/odf2xhtml/export/xhtml/header.xsl | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git filter/source/xslt/odf2xhtml/export/xhtml/header.xsl filter/source/xslt/odf2xhtml/export/xhtml/header.xsl
index 6af404c..98ee59b 100644
--- filter/source/xslt/odf2xhtml/export/xhtml/header.xsl
+++ filter/source/xslt/odf2xhtml/export/xhtml/header.xsl
@@ -128,9 +128,11 @@
 					</xsl:if>
 					
 			</xsl:for-each>
-			<!-- Otherwise all styles have been processed and the empty styles have to be given out -->
+			<xsl:if test="$debugEnabled">
+				<!-- Otherwise all styles have been processed and the empty styles have to be given out -->
 				<xsl:comment> ODF styles with no properties representable as CSS </xsl:comment><xsl:text>
-	</xsl:text><xsl:for-each select="$globalData/all-styles/style[final-properties = '']"><xsl:value-of select="concat('.', @style:name, ' ')"/></xsl:for-each> { }
+				</xsl:text><xsl:comment><xsl:for-each select="$globalData/all-styles/style[final-properties = '']"><xsl:value-of select="concat('.', @style:name, ' ')"/></xsl:for-each> { }</xsl:comment>
+			</xsl:if>
 	</xsl:template>
 
 	<!-- Creating CSS page layout based on first office master style -->
-- 
1.8.5.1



More information about the LibreOffice mailing list