Issue 56165 - CreateEnumeration does not properly enumerate text at the end of an empty paragraph
Summary: CreateEnumeration does not properly enumerate text at the end of an empty par...
Status: CLOSED FIXED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial
Target Milestone: ---
Assignee: chne
QA Contact: issues@api
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-17 21:18 UTC by andrew
Modified: 2013-02-24 21:10 UTC (History)
1 user (show)

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


Attachments
Demonstrate the problem (11.62 KB, application/vnd.sun.xml.writer)
2005-10-17 21:19 UTC, andrew
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description andrew 2005-10-17 21:18:25 UTC
More specifically, I am enumerating text looking for reference marks. 
I obtain the selected text and then enumerate the selected text. Consider the
following text:

Hello, how are
you
Blah

If you select the text from the “are you Blah†then everything enumerates as
expected: 

<NewParagraph/>					'First paragraph is enumerated
<TextContent>are</TextContent>
<NewParagraph/>					'Second paragraph is enumerated
<RefMark name='youmark'></RefMark>		'Start reference mark
<TextContent>you</TextContent>			'See the text in the enumeration
<RefMark name='youmark'>you</RefMark>	'End reference mark
<NewParagraph/>
<TextContent>Blah</TextContent>

Notice that the text “you†has a reference mark around it. Now, if I select from
immediately AFTER “are†and then I include “you blahâ€, then I have the following
enumerations:

<NewParagraph/>					'First paragraph is enumerated
<TextContent></TextContent>			'Nothing in the first paragraph
<RefMark name='youmark'></RefMark>		'Why is there a reference mark here?
<NewParagraph/>					'Second paragraph is enumerated
<RefMark name='youmark'></RefMark>		'Start reference mark
<TextContent>you</TextContent>			'See the text in the enumeration
<RefMark name='youmark'>you</RefMark>	'End reference mark
<NewParagraph/>
<TextContent>Blah</TextContent>


Now, the start reference mark is enumerated twice. The attached document
contains a macro that demonstrates the problem very nicely:
Comment 1 andrew 2005-10-17 21:19:35 UTC
Created attachment 30569 [details]
Demonstrate the problem
Comment 2 stephan.wunderlich 2005-10-19 17:08:55 UTC
sw->tl: your area methinks
Comment 3 thomas.lange 2006-06-20 14:26:47 UTC
.
Comment 4 thomas.lange 2006-10-11 11:01:11 UTC
.
Comment 5 thomas.lange 2006-10-11 11:02:13 UTC
Fixed in CWS tl25.

Files changed:
- sw/source/core/unocore/unoportenum.cxx
Comment 6 thomas.lange 2006-11-27 11:06:33 UTC
.
Comment 7 chne 2006-12-11 10:11:25 UTC
ok in tl25
Comment 8 chne 2007-02-02 14:06:14 UTC
ok in src680m202