Description: In the attached ODS file, for some reason, the first paragraph has different font size at the ending, and it’s not visible when looking in “Formatting Marks” (Ctrl+F10) mode. When open in word we can see, by smaller PILCROW, that there is something wrong with this paragraph. In my opinion, there should be a similar height change that in Word to indicate some inconsistencies in such kind of cases. Steps to Reproduce: 1) Put the cursor at the beginning or ending of the first paragraph. 2) Delete text in this paragraph --> height of the line is hanged, thus moving the whole content on the page. Actual Results: When paragraph1 has a different font size at the end than its content, PILCROW has the height of the content's font, not the height of that different-sized ending of paragraph1. Expected Results: PILCROW should take the font size of the ending, not the content, to indicate that there is a discrepancy between the content and the ending of the paragraph. Reproducible: Always User Profile Reset: No Additional Info: Version: 24.2.1.2 (X86_64) / LibreOffice Community Build ID: db4def46b0453cc22e2d0305797cf981b68ef5ac CPU threads: 8; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL: win Locale: pl-PL (en_US); UI: en-US Calc: threaded
Created attachment 192968 [details] Line height&Pillcrow size
Created attachment 192969 [details] Paragraph ending&Pillcrow size bug.odt
Created attachment 192970 [details] tdf#160048smaller Pilcrow indicating something is wrong.png
Can not confirm, and not seeing an issue. You've applied 20pt Direct Formatting (DF) to the text of the first paragraph. When deleting or adding subsequent inserted paragraphs are picking up that same DF, and the Pilcrow (U+00B6) picks up that 20pt DF size. That remain behavior established from OOo era--the DF is carried into a new paragraph. Remove the DF, and the 12pt font size of the 'Default Paragraph Style' will assert. Version: 24.2.1.2 (X86_64) / LibreOffice Community Build ID: db4def46b0453cc22e2d0305797cf981b68ef5ac CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Vulkan; VCL: win Locale: en-US (en_US); UI: en-US Calc: CL threaded
> Remove the DF, and the 12pt font size of the 'Default Paragraph Style' will > assert. Alternatively establish a couple of paragraph styles to not use DF against the Default Paragraph Style.
Created attachment 192988 [details] Direct Formatting (comment4) (In reply to V Stuart Foote from comment #4) > You've applied 20pt Direct Formatting (DF) to the text of the first > paragraph. When deleting or adding subsequent inserted paragraphs are > picking up that same DF, and the Pilcrow (U+00B6) picks up that 20pt DF size. You're right. When changing DF, the consistency of font height is preserved (as in the attached video). (comment #4) > Can not confirm, and not seeing an issue. Maybe I described it wrong. Do you really see no change in line height when deleting text in the first paragraph? This also happens in the following setup: Version: 24.2.0.2 (X86_64) / LibreOffice Community Build ID: b1fd3a6f0759c6f806568e15c957f97194bbec8f CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win Locale: pl-PL (pl_PL); UI: en-US Calc: threaded
But this is the "correct" behavior. At the end of a paragraph the ¶ U+00B6 Pilcrow glyph is assigned as a marker symbol displaying the applied DF--size and font. That DF takes priority over an applied paragraph style and remains until the DF is cleared or the paragraph is deleted. Can demonstrate by changing the font of the 1st paragraph in attachment 192969 [details]. The shift in height, when the only character is deleted but leaving the DF applied to now empty paragraph is an issue--but don't think that was the question. Or was it? @Mike, * is the altered height of an empty DF span of first paragraph similar to bug 155238 and https://gerrit.libreoffice.org/c/core/+/151645 but needing something more?
JMJ (In reply to V Stuart Foote from comment #7) > Can demonstrate by changing the font of the 1st paragraph in attachment > 192969 [details]. Who can demonstrate? When I've tried to change the font size of a whole-selected paragraph, the paragraph was fixed: this shift in height disappeared. But... > ...leaving the DF applied to now empty paragraph is an issue > --but don't think that was the question. > Or was it? Correct, this is not the issue of this bug. But personally, I wonder how come that this let say "broken" paragraph was made. I can't reproduce it, at least for now. So, I would also be happy if You could explain to me what is hidden inside this "broken" paragraph. ...but: MS Word behaviour with Pilcrow height of invisible different-sized characters is, in my opinion, smart. Because when a user sees a different font size and a different "paragraph marker" size (¶ Pilcrow U+00B6 glyph) in the text, it gives them a clue that something is wrong. And as long as I was editing this document in LO, I have noticed that there was something wrong with this paragraph after a long, long while. Word showing this at a first glance. So that is why I would humbly ask You to prepare similar behaviour in the LibreOffice.