]> source.dussan.org Git - poi.git/commitdiff
fix CSS for subscript/superscript in Word-to-HTML converter
authorSergey Vladimirov <sergey@apache.org>
Thu, 21 Jul 2011 03:54:46 +0000 (03:54 +0000)
committerSergey Vladimirov <sergey@apache.org>
Thu, 21 Jul 2011 03:54:46 +0000 (03:54 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1149030 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/src/org/apache/poi/hwpf/converter/WordToHtmlUtils.java

index b6a8c492cb49c18e13f2a0856022a96947311eff..8ec27d5950a4889ae1bf348e80b7cf3fc52b8f11 100644 (file)
@@ -83,12 +83,12 @@ public class WordToHtmlUtils extends AbstractWordUtils
         }
         if ( characterRun.getSubSuperScriptIndex() == 1 )
         {
-            style.append( "baseline-shift:super;" );
+            style.append( "vertical-align:super;" );
             style.append( "font-size:smaller;" );
         }
         if ( characterRun.getSubSuperScriptIndex() == 2 )
         {
-            style.append( "baseline-shift:sub;" );
+            style.append( "vertical-align:sub;" );
             style.append( "font-size:smaller;" );
         }
         if ( characterRun.getUnderlineCode() > 0 )