[Libreoffice-bugs] [Bug 39969] Applying formatting doesnt work correctly if cell contains multiple direct formatting sequences

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Jun 3 13:53:40 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=39969

--- Comment #15 from Yousuf Philips (jay) <philipz85 at hotmail.com> ---
Created attachment 133824
  --> https://bugs.documentfoundation.org/attachment.cgi?id=133824&action=edit
sample ods

So i created this sample spreadsheet in 5.5 master.

If you select C2 and apply italics and then unapply italics, the text
previously having italics retain italics. So if we investigate the xml, we see
the C2 originally is like so.

 <style:style style:name="T3" style:family="text">
   <style:text-properties fo:font-style="italic" ... />
 </style:style>
 <style:style style:name="T4" style:family="text">
   <style:text-properties fo:font-style="italic" ... />
 </style:style>

 <table:table-cell ...>
   <text:p>
     <text:span text:style-name="T3">Italic Text</text:span>
   </text:p>
   <text:p>Non-Italic Text</text:p>
   <text:p>
     <text:span text:style-name="T4">Italic Text</text:span>
   </text:p>
 </table:table-cell>

And after apply the italics, it has applied it at the cell level and not at the
individual paragraph levels, as the xml looks like this.

 <style:style style:name="ce2" style:family="table-cell" ... >
   <style:text-properties fo:font-style="italic" ... />
 </style:style>

 <table:table-cell table:style-name="ce2" ... >
   <text:p>
     <text:span text:style-name="T3">Italic Text</text:span>
   </text:p>
   <text:p>Non-Italic Text</text:p>
   <text:p>
     <text:span text:style-name="T4">Italic Text</text:span>
   </text:p>
 </table:table-cell>

And when unapplying the italics, it also sets it at the cell level, which the
paragraph level attributes will ignore.

 <style:style style:name="ce3" style:family="table-cell" ... >
   <style:text-properties fo:font-style="normal" ... />
 </style:style>

 <table:table-cell table:style-name="ce3" ... >
   <text:p>
     <text:span text:style-name="T3">Italic Text</text:span>
   </text:p>
   <text:p>Non-Italic Text</text:p>
   <text:p>
     <text:span text:style-name="T4">Italic Text</text:span>
   </text:p>
 </table:table-cell>

This problem can also be seen with D2 when applying & unapplying underline and
should also be seen in B2 when applying & unapplying bold, but it is broken.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170603/9743b94f/attachment.html>


More information about the Libreoffice-bugs mailing list