https://issues.apache.org/bugzilla/show_bug.cgi?id=45062
--- Comment #6 from dnapoletano <[EMAIL PROTECTED]> 2008-09-23 04:32:06 PST ---
(In reply to comment #5)
> Just re-tested with svn trunk, and hwpf works properly
>
The problem seems to be located in the way in which HWPF handles paragraphs and
character runs of table cells. In TestProblems.java (the JUnit testcase related
to this bug and bug 44292) I tried to add the lines (in first table cell
checks)
//A - the *already existing* tests on first table cell
assertEquals(1, cell.numParagraphs());
assertEquals("One paragraph is ok\7", cell.getParagraph(0).text());
//A end
//B - mine, added
assertEquals(1, cell.numCharacterRuns());
assertEquals("One paragraph is ok\7", cell.getCharacterRun(0).text());
//B end
//C - mine, added
assertEquals("One paragraph is ok\7", cell.text());
and,
1) if in TableCell.java "end+1" is used, "A" and "C" blocks pass the test, but
"B" fails: then, in this case paragraphs list and text() run correctly, but
character runs retrieval does not
2) if in TableCell.java "end" is used, "B" block passes and "A" and "C" fail:
then, in this case, character runs list is retrieved correctly correctly, but
paragraph retrieval and text() doe not
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]