Bug 157245

Summary: Pressing enter in front of heading adds a tab, too
Product: LibreOffice Reporter: Aron Budea <aron.budea>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: buzea.bogdan, ilmari.lauhakangas, vasily.melenchuk
Priority: medium Keywords: bibisected, bisected, regression
Version: 7.5.0.3 release   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=148360
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 112706    
Attachments: Sample ODT

Description Aron Budea 2023-09-15 01:27:45 UTC
Created attachment 189584 [details]
Sample ODT

Open the attached sample, and press enter at the beginning of the heading.

=> Apart from adding a line, an extra tab is added as well in front of the heading.

This doesn't happen with the default Heading 1 style in a new document, and I'm not exactly sure in what way this file's styles are different, but they're slightly different.

Observed using LO 24.2.0.0.alpha0+ (d8dbf35c48698e49c527d740853ce4edc4f1afa9) / Ubuntu.

This change seems to be a regression, which came from the following commit. Adding CC: to Vasily Melenchuk.

https://cgit.freedesktop.org/libreoffice/core/commit/?id=a7d9837a8aa6d1233f4c21e4db5d32428a3ffc58
author		Vasily Melenchuk <vasily.melenchuk@cib.de>	2022-05-26 12:05:58 +0300
committer	Thorsten Behrens <thorsten.behrens@allotropia.de>	2022-08-02 15:59:35 +0200

tdf#148360: sw: do not ignore list label followed by
Comment 1 Buovjaga 2023-09-28 10:08:06 UTC
Repro

Arch Linux 64-bit, X11
Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 2be27d23b9a4adbb491c48a0abeaa8ed7482e530
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 28 September 2023