Issue 50195 - Writer loose multiple character style (imbricated text:span) on opening
Summary: Writer loose multiple character style (imbricated text:span) on opening
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: open-import (show other issues)
Version: current
Hardware: PC All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2005-06-01 16:08 UTC by zauc
Modified: 2013-08-07 14:38 UTC (History)
1 user (show)

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


Attachments
A file with 2 text:span that will show only 1 once opened (5.92 KB, application/vnd.oasis.opendocument.text)
2005-06-01 16:13 UTC, zauc
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description zauc 2005-06-01 16:08:25 UTC
If you assign multiple character style to some characters, it'll work when you
do it on OOWriter (you'll see the characters with the combined properties of all
styles) but upon re-opening only one style will remain.

Steps to reproduce :
1/ Create a new document
2/ Type some text and select it
3/ Now bring the Style manager and go to character style, double click on one
(say Emphasis), your text will now be in italic. 
4/ Then shift-double-click another one (say Teletype) to add it. Your text will
now be both Emphasis (italic) and Teletype (Courier New).  
5/ Now save and close 
6/ Reopen you file. 

Actual Results :
  Italic (Emphasis) is gone.

Expected Results :
  Both character styles should remain.

Notes:
  The problem seem to occur on opening, because if you look at the XML the first
time you save, you'll see that text:span are correctly generated :

<text:p text:style-name="Standard">
  <text:span text:style-name="Emphasis">
    <text:span text:style-name="Teletype">Azerty</text:span>
  </text:span>
</text:p>

But after you open it, you'll see that all but one style remain, and accordingly
when you save the XML now looks like this :

<text:p text:style-name="Standard">
  <text:span text:style-name="Teletype">Azerty</text:span>
</text:p>


Regards,

Sylvain
Comment 1 zauc 2005-06-01 16:13:25 UTC
Created attachment 26805 [details]
A file with 2 text:span that will show only 1 once opened
Comment 2 stuartauld 2005-06-13 07:10:18 UTC
Duplicated on Gentoo Linux 2.6.12-rc1, OpenOffice.org 1.9.104
Comment 3 michael.ruess 2005-06-14 15:34:42 UTC
MRU->FME: when applying multiple character styles to a text, the attribute will
be lost when reopening a document. It seems, that it is correctly saved into
file format (as described above). This also applies to binary format, so this
may not be located in the save/load process itself.
Comment 4 frank.meies 2005-06-28 15:02:06 UTC
FME: Already occurs in OOo 1.0. Due to a lack of resources this has to be moved
to target 'OOo Later'.