Bug 103888 - SVG: tspan element gets an additional horizontal spacing before and after
Summary: SVG: tspan element gets an additional horizontal spacing before and after
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: graphics stack (show other bugs)
Version:
(earliest affected)
4.1.0.4 release
Hardware: x86 (IA32) All
: medium normal
Assignee: Xisco Faulí
URL:
Whiteboard: target:7.5.0 target:7.4.3
Keywords: filter:svg
: 106201 134716 138123 146682 (view as bug list)
Depends on:
Blocks: SVG-Import
  Show dependency treegraph
 
Reported: 2016-11-12 14:50 UTC by Regina Henschel
Modified: 2024-04-17 04:00 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:


Attachments
text in svg with tspan-element (367 bytes, image/svg+xml)
2016-11-12 14:50 UTC, Regina Henschel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Regina Henschel 2016-11-12 14:50:45 UTC
Created attachment 128696 [details]
text in svg with tspan-element

Open attached file in a browser or in Batik. Notice, the letters "vor" are bold and have _no_ spacing before and after.

Now insert this svg image in Draw or Writer. Notice, that there is additional space before and after the letters "vor". If you look into the source, you will see, that the letters are all in one line without any space.
Comment 1 Xisco Faulí 2016-11-12 14:55:33 UTC
Confirmed in

Version: 5.3.0.0.alpha1+
Build ID: 60da087d7e182b58b63d4123c9bd96c82376d450
CPU Threads: 4; OS Version: Linux 4.2; UI Render: default; VCL: gtk3; Layout Engine: new; 
Locale: ca-ES (ca_ES.UTF-8); Calc: group
Comment 2 QA Administrators 2018-01-05 03:41:20 UTC Comment hidden (noise)
Comment 3 Regina Henschel 2018-01-05 10:38:32 UTC
The error still exists in Version: 6.1.0.0.alpha0+ (x64)
Build ID: d73857e7d7f6a5bf38c6a2f396832faabaef65e2
CPU threads: 8; OS: Windows 10.0; UI render: default; 
TinderBox: Win-x86_64@62-TDF, Branch:master, Time: 2017-12-12_17:37:14
Locale: de-DE (de_DE); Calc: CL
Comment 4 Jan-Erik Jonsson 2019-01-28 14:24:08 UTC
The bug still exists.

Version: 6.0.6.2
Build ID: 1:6.0.6-0ubuntu0.18.04.1
CPU-trådar: 8; Operativsystem: Linux 4.15; UI-rendering: standard; VCL: gtk3; 
Språkinställning: sv-SE (sv_SE.UTF-8); Calc: group

This is the latest version shipping with Ubuntu 18.04.
Comment 5 Mikhail Pavlovich Sidorenko 2020-08-02 09:31:35 UTC
The bug still exists.

Version: 6.4.4.2
Comment 6 QA Administrators 2022-08-03 03:30:27 UTC Comment hidden (noise)
Comment 7 Regina Henschel 2022-08-03 09:22:56 UTC
The error still exists in Version: 7.5.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 5df1bb4b1b222be00d25097660c4ee33542896ea
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: de-DE (en_US); UI: en-US
Calc: CL
Comment 8 Regina Henschel 2022-08-03 09:42:49 UTC
Adding the blank happens in
svgio::svgreader::SvgCharacterNode* whiteSpaceHandling
https://opengrok.libreoffice.org/xref/core/svgio/source/svgreader/svgdocumenthandler.cxx?r=b24064f2#104

But I don't know in which context such blank is needed.
Comment 9 Xisco Faulí 2022-09-21 14:48:46 UTC
I stepped upon the same issue while checking something else. Taking
Comment 10 Commit Notification 2022-09-21 19:05:07 UTC
Xisco Fauli committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/a42f5faac7c6d4590e632cf40e3ba9eb618e6f56

tdf#103888: Do not add a gap at the end of each text portion

It will be available in 7.5.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 11 Commit Notification 2022-10-03 10:30:17 UTC
Xisco Fauli committed a patch related to this issue.
It has been pushed to "libreoffice-7-4":

https://git.libreoffice.org/core/commit/e5c18c7ac9436864291e1560eedad0ed9bb67f35

tdf#103888: Do not add a gap at the end of each text portion

It will be available in 7.4.3.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 12 Xisco Faulí 2023-07-13 23:19:24 UTC
*** Bug 146682 has been marked as a duplicate of this bug. ***
Comment 13 Xisco Faulí 2023-08-02 12:09:08 UTC
*** Bug 138123 has been marked as a duplicate of this bug. ***
Comment 14 Xisco Faulí 2023-08-02 12:11:31 UTC
*** Bug 106201 has been marked as a duplicate of this bug. ***
Comment 15 Xisco Faulí 2023-08-19 09:34:28 UTC
*** Bug 134716 has been marked as a duplicate of this bug. ***