nicer HTML in Word-to-HTML converter for one-section document
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1149033 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a38b32750b
commit
a110ea84ae
@ -308,6 +308,12 @@ public abstract class AbstractWordConverter
|
|||||||
protected void processDocumentPart( HWPFDocumentCore wordDocument,
|
protected void processDocumentPart( HWPFDocumentCore wordDocument,
|
||||||
final Range range )
|
final Range range )
|
||||||
{
|
{
|
||||||
|
if ( range.numSections() == 1 )
|
||||||
|
{
|
||||||
|
processSingleSection( wordDocument, range.getSection( 0 ) );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
for ( int s = 0; s < range.numSections(); s++ )
|
for ( int s = 0; s < range.numSections(); s++ )
|
||||||
{
|
{
|
||||||
processSection( wordDocument, range.getSection( s ), s );
|
processSection( wordDocument, range.getSection( s ), s );
|
||||||
|
Loading…
Reference in New Issue
Block a user