Apache OpenOffice (AOO) Bugzilla – Issue 63237
iterating through text
Last modified: 2013-02-24 21:09:30 UTC
Behavior of text iteration primitives (createEnumeration, nextElement) seems to have changed a bit since 1.5. I've noticed some enhancements but also what seems to be bugs. Please have a go at the text document I send in attachment. It contains three test cases. Case 1 and 2 present definitely strange behavior, much different from what used to be true in OOo 1.5. Case 3 is a slight adaptation of Case 1 that runs fine, just for constrast. Some comments: Case 1: the last sentence of the selection appears twice in the enumeration. I have another very similar test case in which some three different fragments of the last sentence are enumerated before the table. Case 2: Foo1 is included in the enumeration while it really shouldn't. Case 3: just adds one blank line to Case 1 that makes all the difference. Thanks in advance. Cheers, Jorge.
Created attachment 34911 [details] enumeration bug demo
sw->tl: the case one looks good for me with OOo 2.0.2 but I could see this behaviour in OOo 2.0 ... the case2 seems still to be there so there seems to be still some work to be done ;-)
Created attachment 34922 [details] the exact way selection should be done for case 1
Thank you for your reply, sw! Just checking out: are you sure that, if you make a selection as shown in the gif I've just attached (case1-selection.gif) and run macro Case1, you don't see the sentence "This is the sentence finishes Case 1, select till its full stop." (sic) appear twice?
.
TL: Since most bugs with target OOo 2.0.4 should now get retargted to OOo 2.0.x this one will be retargted as well.
set target from 2.x to 3.x according to http://wiki.services.openoffice.org/wiki/Target_3x
Created attachment 73501