poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ser...@apache.org
Subject svn commit: r1149034 - /poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/converter/WordToHtmlUtils.java
Date Thu, 21 Jul 2011 04:06:37 GMT
Author: sergey
Date: Thu Jul 21 04:06:36 2011
New Revision: 1149034

URL: http://svn.apache.org/viewvc?rev=1149034&view=rev
Log:
fix missing table borders in HTML 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=1149034&r1=1149033&r2=1149034&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 04:06:36 2011
@@ -46,7 +46,10 @@ public class WordToHtmlUtils extends Abs
         }
 
         style.append( ":" );
-        style.append( getBorderWidth( borderCode ) );
+        if ( borderCode.getLineWidth() < 8 )
+            style.append( "thin" );
+        else
+            style.append( getBorderWidth( borderCode ) );
         style.append( ' ' );
         style.append( getBorderType( borderCode ) );
         style.append( ' ' );



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


Mime
View raw message