insert space instead of tab in lists

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1173864 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sergey Vladimirov 2011-09-21 21:16:12 +00:00
parent 112e6da926
commit 9d215e164d
2 changed files with 8 additions and 3 deletions

View File

@ -105,6 +105,8 @@ public abstract class AbstractWordConverter
private static final byte SPECCHAR_DRAWN_OBJECT = 8;
protected static final char UNICODECHAR_NO_BREAK_SPACE = '\u00a0';
protected static final char UNICODECHAR_NONBREAKING_HYPHEN = '\u2011';
protected static final char UNICODECHAR_ZERO_WIDTH_SPACE = '\u200b';

View File

@ -579,7 +579,9 @@ public class WordToHtmlConverter extends AbstractWordConverter
pElement.appendChild( span );
Text textNode = htmlDocumentFacade.createText( bulletText
.substring( 0, bulletText.length() - 1 ) );
.substring( 0, bulletText.length() - 1 )
+ UNICODECHAR_ZERO_WIDTH_SPACE
+ UNICODECHAR_NO_BREAK_SPACE );
span.appendChild( textNode );
}
else
@ -731,8 +733,9 @@ public class WordToHtmlConverter extends AbstractWordConverter
tableElement
.setAttribute(
"class",
htmlDocumentFacade.getOrCreateCssClass(
"t", "table-layout:fixed;border-collapse:collapse;border-spacing:0;" ) );
htmlDocumentFacade
.getOrCreateCssClass( "t",
"table-layout:fixed;border-collapse:collapse;border-spacing:0;" ) );
if ( tableHeader.hasChildNodes() )
{
tableElement.appendChild( tableHeader );