[Libreoffice-bugs] [Bug 108559] Pasting direct formatted text in cell edit mode doesn' t always retain the original direct formatting
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Tue Jun 20 23:13:37 UTC 2017
https://bugs.documentfoundation.org/show_bug.cgi?id=108559
Yousuf Philips (jay) <philipz85 at hotmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |erack at redhat.com,
| |philipz85 at hotmail.com
Blocks|108252 |102593
Summary|Calc changes font to bold |Pasting direct formatted
|when the user tries to |text in cell edit mode
|change the font size |doesn't always retain the
| |original direct formatting
--- Comment #4 from Yousuf Philips (jay) <philipz85 at hotmail.com> ---
As attachment 134117 tackles the core issue, lets focus this bug on it. So lets
look at the code.
<style:style style:name="ce1" style:family="table-cell" ...>
<style:table-cell-properties ... />
<style:paragraph-properties ... />
<style:text-properties fo:color="#ffffff" ... fo:font-weight="bold" ... />
</style:style>
<style:style style:name="T1" style:family="text">
<style:text-properties fo:font-weight="normal" ... />
</style:style>
<style:style style:name="T2" style:family="text">
<style:text-properties fo:font-weight="bold" ... />
</style:style>
<table:table-cell table:style-name="ce1" ...>
<text:p>DD D
<text:span text:style-name="T1">o</text:span>
<text:span text:style-name="T2">D</text:span>
<text:span text:style-name="T1">o</text:span></text:p>
</table:table-cell>
What can be seen is that 'DD D' is set to bold at the cell level and not at the
span level, so from this view, it is understandable that when you paste the
beginning 'DD D' that it wouldnt be set to bold, as it would look like so.
<table:table-cell table:style-name="ce1" ...>
<text:p>DD D
<text:span text:style-name="T1">o</text:span>
<text:span text:style-name="T2">D</text:span>
<text:span text:style-name="T1">o DD Do</text:span>
<text:span text:style-name="T2">D</text:span>
<text:span text:style-name="T1">o</text:span></text:p>
</table:table-cell>
So not sure what could be done differently to make this work as expected, when
the cell contents wasnt fully created with direct formatting in cell edit mode.
@Eike: Any thoughts?
Referenced Bugs:
https://bugs.documentfoundation.org/show_bug.cgi?id=102593
[Bug 102593] [META] Paste bugs and enhancements
https://bugs.documentfoundation.org/show_bug.cgi?id=108252
[Bug 108252] [META] Cell-related bugs and enhancements
--
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/20170620/1c109b29/attachment.html>
More information about the Libreoffice-bugs
mailing list