poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ser...@apache.org
Subject svn commit: r1149033 - /poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java
Date Thu, 21 Jul 2011 04:06:14 GMT
Author: sergey
Date: Thu Jul 21 04:06:12 2011
New Revision: 1149033

URL: http://svn.apache.org/viewvc?rev=1149033&view=rev
Log:
nicer HTML in Word-to-HTML converter for one-section document

Modified:
    poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java

Modified: poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java?rev=1149033&r1=1149032&r2=1149033&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java
(original)
+++ poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/converter/AbstractWordConverter.java
Thu Jul 21 04:06:12 2011
@@ -308,6 +308,12 @@ public abstract class AbstractWordConver
     protected void processDocumentPart( HWPFDocumentCore wordDocument,
             final Range range )
     {
+        if ( range.numSections() == 1 )
+        {
+            processSingleSection( wordDocument, range.getSection( 0 ) );
+            return;
+        }
+
         for ( int s = 0; s < range.numSections(); s++ )
         {
             processSection( wordDocument, range.getSection( s ), s );



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message