]> source.dussan.org Git - poi.git/commitdiff
fix missing table borders in HTML in Word-to-HTML converter
authorSergey Vladimirov <sergey@apache.org>
Thu, 21 Jul 2011 04:06:36 +0000 (04:06 +0000)
committerSergey Vladimirov <sergey@apache.org>
Thu, 21 Jul 2011 04:06:36 +0000 (04:06 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1149034 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/src/org/apache/poi/hwpf/converter/WordToHtmlUtils.java

index 8ec27d5950a4889ae1bf348e80b7cf3fc52b8f11..87dbb982bb36d1bf37a2aa0ef05da4578c676896 100644 (file)
@@ -46,7 +46,10 @@ public class WordToHtmlUtils extends AbstractWordUtils
         }
 
         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( ' ' );