You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by se...@apache.org on 2011/07/21 05:54:48 UTC
svn commit: r1149030 -
/poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/converter/WordToHtmlUtils.java
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