From aaa92a202bc43dcbd4c49fd932d9428faa6064f5 Mon Sep 17 00:00:00 2001 From: Sergey Vladimirov Date: Wed, 7 Sep 2011 12:55:51 +0000 Subject: [PATCH] use margin CSS properties to control indentation in HTML git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1166155 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/hwpf/converter/WordToHtmlUtils.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 02f85ffbd7..5b51af101b 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/converter/WordToHtmlUtils.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/converter/WordToHtmlUtils.java @@ -129,10 +129,12 @@ public class WordToHtmlUtils extends AbstractWordUtils public static void addIndent( Paragraph paragraph, StringBuilder style ) { addIndent( style, "text-indent", paragraph.getFirstLineIndent() ); - addIndent( style, "start-indent", paragraph.getIndentFromLeft() ); - addIndent( style, "end-indent", paragraph.getIndentFromRight() ); - addIndent( style, "space-before", paragraph.getSpacingBefore() ); - addIndent( style, "space-after", paragraph.getSpacingAfter() ); + + addIndent( style, "margin-left", paragraph.getIndentFromLeft() ); + addIndent( style, "margin-right", paragraph.getIndentFromRight() ); + + addIndent( style, "margin-top", paragraph.getSpacingBefore() ); + addIndent( style, "margin-bottom", paragraph.getSpacingAfter() ); } private static void addIndent( StringBuilder style, final String cssName, -- 2.39.5