DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39177>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39177





------- Additional Comments From [EMAIL PROTECTED]  2006-04-12 19:21 -------
(In reply to comment #4)
> We also need a tweak to the last RichTextRun, to make that 1 longer too
> 
> I've committed a fix that covers both, along with some tests to ensure we 
> don't
> break things on re-writes.

Hi Nick,

I was writing this post when you commited the fix. 
It looks like the problem is fixed. 

Below is an extract from what I was going to post, just to repeat it once more:

The sum of length of all text runs must equal to total length of the text plus 
1.
The last text run always contains an extra character which defines styling of a
new text 
which is appended to the end. This rule works both for character and paragraph
styles. I.e. 
the sum of length of all character styles must be equal to rawtext.length +1
and the sum of length of all paragraph styles must be equal to rawtext.length 
+1.

It makes sense to reflect it in the documentation. Text styling is one of the
most weird things in PPT. Even if you look at the working code it's extremely
hard to figure out why it has the extra character at the end.

Best Regards, Yegor

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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
Mailing List:    http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/

Reply via email to