Bug 158680 - Leading space if using variables
Summary: Leading space if using variables
Status: RESOLVED DUPLICATE of bug 159101
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.6.0.3 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
: 159896 (view as bug list)
Depends on:
Blocks: Fields-Variable
  Show dependency treegraph
 
Reported: 2023-12-13 11:18 UTC by Hinrich
Modified: 2024-03-08 12:08 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
The requested file (.odt) (352.42 KB, application/vnd.oasis.opendocument.text)
2023-12-14 16:18 UTC, Hinrich
Details
A red circle surround the leading space. (136.19 KB, application/pdf)
2023-12-14 16:19 UTC, Hinrich
Details
Screenshot with no issue (40.04 KB, image/png)
2023-12-14 21:33 UTC, m_a_riosv
Details
Screenshot 2023-12-17 (217.69 KB, image/png)
2023-12-17 14:46 UTC, Hinrich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hinrich 2023-12-13 11:18:54 UTC
Description:
If I have a variable displayed in a continuous text whose content consists of several words separated by spaces, the space is displayed at the beginning of the line when the line breaks. This creates a gap on the left-hand side. 

Steps to Reproduce:
1. Define a variable with more than one word, separated by a single space.
2. Display the variable in a text in that way, it have to be shown in 2 lines 


Actual Results:
A leading space is displayed after line break.

Expected Results:
A trailing space before a line break.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 7.6.4.1 (X86_64) / LibreOffice Community
Build ID: e19e193f88cd6c0525a17fb7a176ed8e6a3e2aa1
CPU threads: 20; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: CL threaded
Comment 1 m_a_riosv 2023-12-13 23:14:19 UTC
Please attach a sample file.
Comment 2 Hinrich 2023-12-14 16:18:13 UTC
Created attachment 191429 [details]
The requested file (.odt)
Comment 3 Hinrich 2023-12-14 16:19:08 UTC
Created attachment 191430 [details]
A red circle surround the leading space.
Comment 4 m_a_riosv 2023-12-14 21:33:42 UTC
Created attachment 191437 [details]
Screenshot with no issue

Not reproducible with:
Version: 7.6.4.1 (X86_64) / LibreOffice Community
Build ID: e19e193f88cd6c0525a17fb7a176ed8e6a3e2aa1
CPU threads: 16; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US Calc: CL threaded
Comment 5 Hinrich 2023-12-17 14:44:30 UTC
Current used version:

Version: 7.6.4.1 (X86_64) / LibreOffice Community
Build ID: e19e193f88cd6c0525a17fb7a176ed8e6a3e2aa1
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: CL threaded

Screenshot of today show the problem.
Comment 6 Hinrich 2023-12-17 14:46:25 UTC
Created attachment 191472 [details]
Screenshot 2023-12-17
Comment 7 m_a_riosv 2023-12-17 22:03:42 UTC
Ok, I see. Reproducible:
Version: 7.6.4.1 (X86_64) / LibreOffice Community
Build ID: e19e193f88cd6c0525a17fb7a176ed8e6a3e2aa1
CPU threads: 16; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US Calc: CL threaded
Version: 24.2.0.0.beta1 (X86_64) / LibreOffice Community
Build ID: 5f390384195b7264c6e52add9e90a39790285249
CPU threads: 16; OS: Windows 10.0 Build 22631; UI render: Skia/Vulkan; VCL: win
Locale: es-ES (es_ES); UI: en-US Calc: CL threaded

Last working version:
Version: 7.5.9.2 (X86_64) / LibreOffice Community
Build ID: cdeefe45c17511d326101eed8008ac4092f278a9
CPU threads: 16; OS: Windows 10.0 Build 22631; UI render: default; VCL: win
Locale: es-ES (es_ES); UI: es-ES
Calc: CL threaded
Comment 8 raal 2023-12-18 18:57:24 UTC
This seems to have begun at the below commit in bibisect repository/OS linux-64-7.6.
Adding Cc: to Michael Stahl ; Could you possibly take a look at this one?
Thanks
 37e548922359a4b87bdf8207d81d06b32f7d9fb9 is the first bad commit
commit 37e548922359a4b87bdf8207d81d06b32f7d9fb9
Author: Jenkins Build User <tdf@pollux.tdf>
Date:   Sun Oct 29 16:30:36 2023 +0100

    source 21473f46fda5f1c7f220493667a96fff7c78a7b3

152274: sw: fix crashtesting assert on forum-mso-en-13115.docx | https://gerrit.libreoffice.org/c/core/+/152274
Comment 9 m_a_riosv 2024-02-26 22:15:48 UTC
*** Bug 159896 has been marked as a duplicate of this bug. ***
Comment 10 Michael Stahl (allotropia) 2024-03-08 12:08:01 UTC
it was fixed already

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