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
This commit is contained in:
Sergey Vladimirov 2011-07-21 03:54:46 +00:00
parent 5561ba40b3
commit ee1624ad5b

View 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 )