Bug 88923 - Writer sometimes doesn't copy/paste formatting
Summary: Writer sometimes doesn't copy/paste formatting
Status: RESOLVED DUPLICATE of bug 88380
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected)
Inherited From OOo
Hardware: Other All
: medium normal
Assignee: Not Assigned
Depends on:
Blocks: Paste
  Show dependency treegraph
Reported: 2015-01-30 05:42 UTC by evaned
Modified: 2021-08-31 13:04 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:

test case (9.05 KB, application/vnd.oasis.opendocument.text)
2015-01-30 05:42 UTC, evaned

Note You need to log in before you can comment on or make changes to this bug.
Description evaned 2015-01-30 05:42:05 UTC
Created attachment 112937 [details]
test case

So I have no idea how I got Writer to *produce* the attached document, but it was nothing terribly fancy.

1. Open the attached document (wat.odt)
2. Note that "Test:" is bold on every line
3. Ctrl-A, Ctrl-X, Ctrl-V

Expected: "Test:" is bold on every line
Actual: "Test:" is NOT bold on the list line (but it is on the others)

Note: I'm not sure what version to file this under. The document was created (and problem first experienced) using LibreOffice from Ubuntu. However, it reproduces on on Windows... so I just went with that.
Comment 1 Buovjaga 2015-01-31 12:20:15 UTC
Reproduced, last Test is not bold after paste.

Win 7 Pro 64-bit Version:
Build ID: 309574394bd4ae3e9e10e5ff0d64bdd7bbbc8b83
TinderBox: Win-x86@62-TDF, Branch:MASTER, Time: 2015-01-29_23:44:46

Ubuntu 14.10 64-bit
LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-
Comment 2 QA Administrators 2016-02-21 08:35:38 UTC Comment hidden (obsolete)
Comment 3 QA Administrators 2017-03-06 15:19:47 UTC Comment hidden (obsolete)
Comment 4 evaned 2017-11-02 06:57:58 UTC
The buggy behavior continues to happen with the attached document on, x86_64, Windows 8.1.

(I still, of course, have no idea what I did to make the document. This is probably a super low-priority bug if it's only happened with whatever I did. I also don't particularly care if it gets fixed, but I'm trying to uphold the bug-reporter responsibility of checking if it repros on newer versions. :-))
Comment 5 Timur 2018-07-06 11:02:43 UTC Comment hidden (me-too)
Comment 6 Timur 2018-07-06 12:31:42 UTC
Once explained, this should be turned to documentation bug. 
Help doesn't have "paragraph end" now but it should explain insert a paragraph with or without paragraph end character, insert word with an additional space and insert sentence with a full stop.
Comment 7 Timur 2018-07-06 13:49:38 UTC Comment hidden (me-too)
Comment 8 Timur 2018-07-06 13:51:38 UTC Comment hidden (me-too)
Comment 9 Timur 2018-07-06 15:50:21 UTC
<style:style style:name="P2" style:family="paragraph">
<style:text-properties fo:font-weight="bold" officeooo:rsid="001f96cd"/>
<style:style style:name="P4" style:family="paragraph">
<style:text-properties fo:font-weight="bold" officeooo:rsid="001f96cd"/>

<style:style style:name="T2" style:family="text">
<style:text-properties fo:font-weight="normal" </style:style>
<style:style style:name="T3" style:family="text">
<style:text-properties fo:font-weight="normal">
<style:style style:name="T4" style:family="text">
<style:text-properties officeooo:rsid="0022ece8"/>

<text:p text:style-name="P2">
<text:span text:style-name="T4">Test: </text:span>
<text:span text:style-name="T2">Abcd</text:span>
<text:p text:style-name="P4">
<text:span text:style-name="T3">Test: </text:span>
<text:span text:style-name="T2">Abcd</text:span>

Paragraphs are bold and "Test" inherits that. Abcd are excluded so non-bold.
Upon a copy, "Test" gets new paragraph and text style that is Normal so becomes non-bold.
I miss a detail why exactly T4 is changed and T2 kept. 
It's related to Bug 88380 and maybe RSIDs mentioned in Bug 86988.
Comment 10 QA Administrators 2019-07-07 03:39:16 UTC Comment hidden (obsolete)
Comment 11 QA Administrators 2021-07-07 04:03:02 UTC Comment hidden (obsolete)
Comment 12 Timur 2021-08-31 13:04:27 UTC
I think this is the explanation:
Test: Abcd is not "B Test: /B Abcd" with "stop Bold" but "B Test: not-B Abcd" with direct format od not-Bold.
Can be seen if format is cleared before paste. 
Doesn't make sense but it's an old issue, just hard to find where mentioned first.  
I see a similar report, although I think there is an older one.

*** This bug has been marked as a duplicate of bug 88380 ***