filter/source/xslt/odf2xhtml/export/common/styles/style_mapping_css.xsl | 14 ++++++++++ 1 file changed, 14 insertions(+)
New commits: commit 809c6ea37f3a6b06569bdf3f9049bf2dd8238cc6 Author: Michael Stahl <michael.st...@collabora.com> AuthorDate: Mon Aug 11 18:29:18 2025 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Wed Aug 13 09:25:00 2025 +0200 tdf#167910 filter: xhtml: simplistic conversion of overline to CSS Change-Id: Id577cf71cb383260c4c66ab929794c02911d01c6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189415 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.st...@collabora.com> Signed-off-by: Xisco Fauli <xiscofa...@libreoffice.org> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/189440 diff --git a/filter/source/xslt/odf2xhtml/export/common/styles/style_mapping_css.xsl b/filter/source/xslt/odf2xhtml/export/common/styles/style_mapping_css.xsl index 56b17331a0b9..d08905f42ef0 100644 --- a/filter/source/xslt/odf2xhtml/export/common/styles/style_mapping_css.xsl +++ b/filter/source/xslt/odf2xhtml/export/common/styles/style_mapping_css.xsl @@ -204,6 +204,20 @@ <xsl:text>; </xsl:text> </xsl:template> + <!-- FIXME this won't work if *both* underline and overline are set --> + <xsl:template match="@style:text-overline-style"> + <xsl:text>text-decoration:</xsl:text> + <xsl:choose> + <xsl:when test=".='none'"> + <xsl:text>none ! important</xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text>overline</xsl:text> + </xsl:otherwise> + </xsl:choose> + <xsl:text>; </xsl:text> + </xsl:template> + <xsl:template match="@style:text-underline-style"> <xsl:text>text-decoration:</xsl:text> <xsl:choose>