View | Details | Raw Unified | Return to bug 47535
Collapse All | Expand All

(-)src/scratchpad/src/org/apache/poi/hwpf/usermodel/Range.java (+4 lines)
Lines 978-983 Link Here
978
      node = (PropertyNode)rpl.get(x);
978
      node = (PropertyNode)rpl.get(x);
979
    }
979
    }
980
980
981
    if (node.getEnd() <= start) {
982
        return new int[] {rpl.size(), rpl.size()};
983
    }
984
981
    int y = x;
985
    int y = x;
982
    node = (PropertyNode)rpl.get(y);
986
    node = (PropertyNode)rpl.get(y);
983
    while(node.getEnd() < end && y < rpl.size()-1)
987
    while(node.getEnd() < end && y < rpl.size()-1)
(-)src/scratchpad/src/org/apache/poi/hwpf/extractor/WordExtractor.java (-3 / +8 lines)
Lines 23-28 Link Here
23
import java.io.UnsupportedEncodingException;
23
import java.io.UnsupportedEncodingException;
24
import java.util.Iterator;
24
import java.util.Iterator;
25
import java.util.Arrays;
25
import java.util.Arrays;
26
import java.util.ArrayList;
26
27
27
import org.apache.poi.POIOLE2TextExtractor;
28
import org.apache.poi.POIOLE2TextExtractor;
28
import org.apache.poi.hwpf.HWPFDocument;
29
import org.apache.poi.hwpf.HWPFDocument;
Lines 252-260 Link Here
252
253
253
		ret.append(getHeaderText());
254
		ret.append(getHeaderText());
254
255
255
		String[] text = getParagraphText();
256
                ArrayList<String> text = new ArrayList<String>();
256
		for(int i=0; i<text.length; i++) {
257
                text.addAll(Arrays.asList(getParagraphText()));
257
			ret.append(text[i]);
258
                text.addAll(Arrays.asList(getFootnoteText()));
259
                text.addAll(Arrays.asList(getEndnoteText()));
260
261
		for(String p : text) {
262
			ret.append(p);
258
		}
263
		}
259
264
260
		ret.append(getFooterText());
265
		ret.append(getFooterText());

Return to bug 47535