Bug 140030 - MASTER DOCUMENT: Blank space is added ahead a title in master document
Summary: MASTER DOCUMENT: Blank space is added ahead a title in master document
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.4.7.2 release
Hardware: x86-64 (AMD64) All
: low trivial
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Master-Doc
  Show dependency treegraph
 
Reported: 2021-01-31 10:19 UTC by David Burleigh
Modified: 2022-09-05 13:17 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Master and Source documents, with annotated pdf output. (1021.92 KB, application/zip)
2021-01-31 10:19 UTC, David Burleigh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Burleigh 2021-01-31 10:19:39 UTC
Created attachment 169317 [details]
Master and Source documents, with annotated pdf output.

When I import a source document into a master document, and there are "Set Variable" fields ahead of the centered title, the title is displayed off-center in the master document, although in the source document the title is displayed on-center. See the attached example, for which I've included pdf output with a red line drawn to show the miss-alignment.
Comment 1 Dieter 2021-02-15 07:52:08 UTC
I confirm the described behaviour with

Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 28555fc345ac2ccdda0e4e0f3c812c646befe68b
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: threaded

but I think the problem is not related to the variable. If I delete the variable I can see, that a blank space is added in front of the title.

David, do you get the same result?
=> NEEDINFO
Comment 2 David Burleigh 2021-02-15 08:54:39 UTC
I can see that if I show the field codes (Ctrl-F9) in the master document it appears that a space is inserted ahead of the variables. However, there is no space ahead of the title in the source document, even if I delete the variables.
Comment 3 Dieter 2021-02-15 10:07:07 UTC
(In reply to David Burleigh from comment #2)
> I can see that if I show the field codes (Ctrl-F9) in the master document it
> appears that a space is inserted ahead of the variables. However, there is
> no space ahead of the title in the source document, even if I delete the
> variables.

Thanks for confirmation => I've changed bug summary and changed status to NEW
Comment 4 Timur 2022-09-05 13:17:28 UTC
NotABug. There is already a space in master Title.