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 06:06:37 UTC

svn commit: r1149034 - /poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/converter/WordToHtmlUtils.java

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