TextSelection.replaceWith does not honor formatting of Span containers
----------------------------------------------------------------------

                 Key: ODFTOOLKIT-313
                 URL: https://issues.apache.org/jira/browse/ODFTOOLKIT-313
             Project: ODF Toolkit
          Issue Type: Bug
          Components: simple api
            Reporter: Oliver Rau
            Assignee: Devin Han


If a text that should be replaced starts within a span that has a style 
attached, the replaceWith method does not honor that style but creates a new 
span with no styles attached, e.g.:

<text:p text:style-name="Standard">SomeText(<text:span 
text:style-name="T1">%replace_me%</text:span>)</text:p>

will result the following (after optimization of the replaceWith code)

<text:p 
text:style-name="Standard">SomeText(<text:span>replacement</text:span>)</text:p>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to