Bug 158132 - RTF paragraph attributes after sprms not applied
Summary: RTF paragraph attributes after sprms not applied
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:rtf
Depends on:
Blocks: RTF-Paragraph
  Show dependency treegraph
 
Reported: 2023-11-09 10:51 UTC by Oliver Specht (CIB)
Modified: 2025-12-13 03:14 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Bugdoc showing wrong attributes at text end (16.58 KB, application/msword)
2023-11-09 10:51 UTC, Oliver Specht (CIB)
Details
new bugdoc (46.89 KB, application/msword)
2023-11-27 07:17 UTC, Oliver Specht (CIB)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Specht (CIB) 2023-11-09 10:51:16 UTC
Created attachment 190743 [details]
Bugdoc showing wrong attributes at text end

The last paragraph in the header and within the body should have font 11pt.
But it has 8pt in the header.
In the body the 'x' ist 11pt as expected but if you put the cursor in front of the 'x' you can start writing in 8pt
Comment 1 Oliver Specht (CIB) 2023-11-09 12:36:44 UTC
It might not be possible to persist the word's handling in writer.

The body paragraph is saved as:
<text:p text:style-name="P1">
<text:span text:style-name="T1">
<text:line-break/>
</text:span>x
</text:p>

So the cursor in front of the 'x' should not have the attributes of the span but that is not how it is working. It expands the attributes left of the cursor.

In Writer you can put the cursor in front of the 'x' an apply "Format/Clear direct formatting". That resets the 8pt attribute - but this state can not be persisted in the document so it does not make sense to try to load an RTF that way.

Word does it the same way except when you insert a line break.
As long as you don't save/reload the attributes are expanded.
Once you save an reload the attribute in the new line are not expanded anymore.
Comment 2 Stéphane Guillou (stragu) 2023-11-23 14:54:59 UTC
(In reply to Oliver Specht (CIB) from comment #0)
> The last paragraph in the header and within the body should have font 11pt.
> But it has 8pt in the header.
I can't put my cursor in the header.
> In the body the 'x' ist 11pt as expected but if you put the cursor in front
> of the 'x' you can start writing in 8pt
Typing at the beginning of the paragraph does not add any character, until direct formatting is removed: then everything appears.

The doc is definitely problematic, but how was it created?

Maybe Miklos has an idea?

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 7d357628d6e8ce3f9e3c3a567ada21f02bce8d42
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Version: 7.6.3.1 (X86_64) / LibreOffice Community
Build ID: c4af5b1259bceea6e979e6fe2435dbee7a5a87c2
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded
Comment 3 Miklos Vajna 2023-11-23 15:51:31 UTC
I assume Oliver knows what he's doing here, so let me just confirm this bug, this is not a random bugreport but is filed by a developer to publicly track a bug, I guess. :-)
Comment 4 Stéphane Guillou (stragu) 2023-11-23 16:02:21 UTC
(In reply to Miklos Vajna from comment #3)
> I assume Oliver knows what he's doing here, so let me just confirm this bug,
> this is not a random bugreport but is filed by a developer to publicly track
> a bug, I guess. :-)
Sure thing, I was just keen to understand the whole problem better – and always good to have your experienced set of eyes on it too :)
Thanks!
Comment 5 Oliver Specht (CIB) 2023-11-27 07:17:21 UTC
Created attachment 191053 [details]
new bugdoc

bugdoc replaced
Comment 6 Stéphane Guillou (stragu) 2023-11-27 10:37:48 UTC
(In reply to Oliver Specht (CIB) from comment #0)
> The last paragraph in the header and within the body should have font 11pt.
> But it has 8pt in the header.
Thanks Oliver, I reproduce with new bugdoc: the cursor denotes the 11 pt size but typing uses 8 pt size, and header border jumps up.

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 7d357628d6e8ce3f9e3c3a567ada21f02bce8d42
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded
Comment 7 QA Administrators 2025-12-13 03:14:11 UTC
Dear Oliver Specht (CIB),

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug