From c7ae9b50dbd6ddaa559505d26ccf8ba470366312 Mon Sep 17 00:00:00 2001 From: Sergey Vladimirov Date: Thu, 21 Jul 2011 04:06:36 +0000 Subject: [PATCH] fix missing table borders in HTML in Word-to-HTML converter git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1149034 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/org/apache/poi/hwpf/converter/WordToHtmlUtils.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 8ec27d5950..87dbb982bb 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/converter/WordToHtmlUtils.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/converter/WordToHtmlUtils.java @@ -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( ' ' ); -- 2.39.5