https://issues.apache.org/bugzilla/show_bug.cgi?id=38264





--- Comment #10 from Andreas L. Delmelle <[EMAIL PROTECTED]>  2008-05-06 
08:06:37 PST ---
Status update:

The main difficulty seems to be that the principal iteration in
LineLM.createLineBreaks() iterates in reverse order. As a result,
applyChanges() is called first for the last Paragraph if the TextLM generates
multiple paragraphs.
Now, while we can keep track of the changed position indices and limit both
applyChanges() and getChangedKnuthElements() to operate only on the portion
corresponding to oldList, by the time the next-to-last paragraph is processed,
the changed positions for the last one should again be modified to take into
account added/removed areas for the changes to the preceding one.

I made such changes locally, and this does avoid the duplication, however,
keeping track of the bounding indices is turning out to be quite a pain. As
soon as the first paragraph has hyphenation points, the positions pointing into
the later paragraphs will be wrong...


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to