poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 45062] Table cells text is wrong
Date Tue, 23 Sep 2008 11:32:08 GMT

--- Comment #6 from dnapoletano <domenico.napoletano@exprivia.it>  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

//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());


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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org

View raw message