poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ser...@apache.org
Subject svn commit: r1149030 - /poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/converter/WordToHtmlUtils.java
Date Thu, 21 Jul 2011 03:54:48 GMT
Author: sergey
Date: Thu Jul 21 03:54:46 2011
New Revision: 1149030

URL: http://svn.apache.org/viewvc?rev=1149030&view=rev
Log:
fix CSS for subscript/superscript in Word-to-HTML converter

Modified:
    poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/converter/WordToHtmlUtils.java

Modified: poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/converter/WordToHtmlUtils.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/converter/WordToHtmlUtils.java?rev=1149030&r1=1149029&r2=1149030&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/converter/WordToHtmlUtils.java (original)
+++ poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/converter/WordToHtmlUtils.java Thu Jul
21 03:54:46 2011
@@ -83,12 +83,12 @@ public class WordToHtmlUtils extends Abs
         }
         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 )



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message