From b8f4db5bad245c2e340b3217b10df994785eecd3 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Mon, 21 Jul 2014 11:36:27 +0200 Subject: Resolves fdo#81581: Mediawiki doesn't recognize underlining Change-Id: I27ec27bd733e5161bbd18ba7cf813daa3ac6c089 --- swext/mediawiki/src/filter/odt2mediawiki.xsl | 59 ++++++++++++++++++++++++---- 1 file changed, 51 insertions(+), 8 deletions(-) diff --git a/swext/mediawiki/src/filter/odt2mediawiki.xsl b/swext/mediawiki/src/filter/odt2mediawiki.xsl index 64474b334ea2..1205536bac42 100644 --- a/swext/mediawiki/src/filter/odt2mediawiki.xsl +++ b/swext/mediawiki/src/filter/odt2mediawiki.xsl @@ -118,23 +118,26 @@ + + + - + - + - + - + - + - + @@ -976,6 +979,8 @@ select="($style mod (2 * $BOLD_BIT)) != 0"/> + + + <tt> + + <u> + ''' @@ -1044,6 +1056,9 @@ ''' + + </u> + </tt> @@ -1255,6 +1270,8 @@ select="($style-mask mod (2 * $BOLD_BIT)) = 0"/> + + + + + + + + + + + + + + + + + + + + + + + + @@ -1473,9 +1516,9 @@ guaranteed to be disjoint, therefore, addition can be use instead of bitwise or (which is missing in XPath). --> + select="$style-set + $bold-style + $italic-style + $underline-style + $superscript-style + $subscript-style + $code-style + $typewriter-style + $center-style + $right-style"/> + select="$style-mask + $bold-mask + $italic-mask + $underline-mask + $superscript-mask + $subscript-mask + $code-mask + $typewriter-mask + $center-mask + $right-mask"/> -- cgit