From: Sergey Vladimirov Date: Thu, 21 Jul 2011 03:54:46 +0000 (+0000) Subject: fix CSS for subscript/superscript in Word-to-HTML converter X-Git-Tag: REL_3_8_BETA4~117 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=590972a8bca256531b2a03c3f68a84eee4719b23;p=poi.git fix CSS for subscript/superscript in Word-to-HTML converter git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1149030 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/scratchpad/src/org/apache/poi/hwpf/converter/WordToHtmlUtils.java b/src/scratchpad/src/org/apache/poi/hwpf/converter/WordToHtmlUtils.java index b6a8c492cb..8ec27d5950 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/converter/WordToHtmlUtils.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/converter/WordToHtmlUtils.java @@ -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 )