On Jan 12, 2006, at 01:14, Manuel Mall wrote:

On Thu, 12 Jan 2006 05:34 am, Andreas L Delmelle wrote:
<snip />
without your patch I cannot really replicate this. When I run through
the debugger now I can see the space being given from the FO to the
TextLayoutManager (look at the textarray in the TextLM constructor)
therefore to me its still a refinement issue. But if your latest
modifications fixes that then I would need that patch to further
investigate.

Try the diff in attach (modifications to XMLWhiteSpaceHandler and LineLayoutManager)



Also, I got an error on testcase table_width.xml:

[junit] Testcase: table_width.xml
(org.apache.fop.layoutengine.LayoutEngineTestSuite$1):     Caused an
ERROR
[junit] java.lang.IndexOutOfBoundsException: Index: 6, Size: 6

Do we know which patch (SVN revision) introduced this issue?

Must have something to do with the revised white-space handling or the removal of removeElementsForTrailingSpaces(). Before that, I never received the error. AFAIU, if this error occurs, this would mean that a given sub-sequence contains no boxes (only glues/ penalties), while the algorithm seems to always expect at least one box...

Attachment: white-space_refinement.diff
Description: Binary data

Cheers,

Andreas

Reply via email to