mirror of https://github.com/apache/poi.git
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:
parent
112e6da926
commit
9d215e164d
|
@ -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';
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue