Issue 63237 - iterating through text
Summary: iterating through text
Status: ACCEPTED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: PC Windows XP
: P3 Trivial
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-15 23:21 UTC by pelizzon
Modified: 2013-02-24 21:09 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
enumeration bug demo (9.56 KB, application/vnd.oasis.opendocument.text)
2006-03-15 23:23 UTC, pelizzon
no flags Details
the exact way selection should be done for case 1 (6.62 KB, image/gif)
2006-03-16 12:11 UTC, pelizzon
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description pelizzon 2006-03-15 23:21:09 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.
Comment 1 pelizzon 2006-03-15 23:23:19 UTC
Created attachment 34911 [details]
enumeration bug demo
Comment 2 stephan.wunderlich 2006-03-16 11:48:53 UTC
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 ;-)
Comment 3 pelizzon 2006-03-16 12:11:32 UTC
Created attachment 34922 [details]
the exact way selection should be done for case 1
Comment 4 pelizzon 2006-03-16 12:16:48 UTC
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?
Comment 5 thomas.lange 2006-06-20 14:26:27 UTC
.
Comment 6 thomas.lange 2006-07-04 14:32:08 UTC
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.
Comment 7 Martin Hollmichel 2007-11-09 17:27:58 UTC
set target from 2.x to 3.x according to
http://wiki.services.openoffice.org/wiki/Target_3x
Comment 8 hartsambatchvolv 2010-11-10 17:30:23 UTC
Created attachment 73501