diff options
author | Svante Schubert <svante.schubert@gmail.com> | 2020-08-24 12:08:27 +0200 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2021-03-02 13:21:23 +0100 |
commit | a973087c2380738b20d8fe2b91f9f534169714f0 (patch) | |
tree | d68e265c2465ee081d06f339420dbe3b4be1e5d6 /filter | |
parent | 3282db181aa63dda00ca7c45af1037911762e5b3 (diff) |
HTML XSLT: List empty CSS styles (ODF styles without CSS mappable styles) only as a comment
Change-Id: I0be491ff96d0b454d064618426da5aa3f861b7f3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111612
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/xslt/odf2xhtml/export/xhtml/header.xsl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/filter/source/xslt/odf2xhtml/export/xhtml/header.xsl b/filter/source/xslt/odf2xhtml/export/xhtml/header.xsl index d5043d07c4b0..110b88aeff43 100644 --- a/filter/source/xslt/odf2xhtml/export/xhtml/header.xsl +++ b/filter/source/xslt/odf2xhtml/export/xhtml/header.xsl @@ -137,8 +137,9 @@ </xsl:for-each> <!-- Otherwise all styles have been processed and the empty styles have to be given out --> - <xsl:text>/* ODF styles with no properties representable as CSS */</xsl:text><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>/* ODF styles with no properties representable as CSS: + </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:text> </xsl:template> <!-- Creating CSS page layout based on first office master style --> |