#70867Use or lack of xml:space="preserve" is not respected
Description
Line breaks are not properly handled in XLIFF.
See https://msdn.microsoft.com/en-us/library/ms256097(v=vs.110).aspx for background.
Problem
Having a XLIFF like that:
<trans-unit id="settings.tika_jar_path">
<source>Tika Application Path: Path to your Apache Tika application jar file (tika-app-x.x.jar). This
path may be relative to the root of your website or absolute. Download the jar from:
https://tika.apache.org/download.html
</source>
</trans-unit>
A call to \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate does not return the expected string.
Expected string
Tika Application Path: Path to your Apache Tika application jar file (tika-app-x.x.jar). This path may be relative to the root of your website or absolute. Download the jar from: http://tika.apache.org/download.html
Actual string
Tika Application Path: Path to your Apache Tika application jar file (tika-app-x.x.jar). This
path may be relative to the root of your website or absolute. Download the jar from:
https://tika.apache.org/download.html
Additional information
Line breaks and blank spaces in XML should only be respected if the XLIFF is written as:
<trans-unit id="settings.tika_jar_path" xml:space="preserve">
<source>Tika Application Path: Path to your Apache Tika application jar file (tika-app-x.x.jar). This
path may be relative to the root of your website or absolute. Download the jar from:
https://tika.apache.org/download.html
</source>
</trans-unit>
Mind the xml:space=“preserve” in trans-unit tag.
Reviews 1
Related issues 3
History 913
-
Xavier Perseguers changed description <span data-processor="relativetime" data-value="2015-10-20T12:10:54+00:00" > 10/20/15, 12:10 </span>
-
Xavier Perseguers changed description <span data-processor="relativetime" data-value="2015-10-20T12:12:07+00:00" > 10/20/15, 12:12 </span>
-
Xavier Perseguers changed target version <span data-processor="relativetime" data-value="2015-10-20T12:13:21+00:00" > 10/20/15, 12:13 </span>
-
Benni Mack changed target version <span data-processor="relativetime" data-value="2017-03-28T22:52:40+00:00" > 03/28/17, 22:52 </span>
-
Georg Ringer changed Tags Xlf <span data-processor="relativetime" data-value="2019-10-02T16:24:25+00:00" > 10/02/19, 16:24 </span>
-
Georg Ringer changed Related to #89334 <span data-processor="relativetime" data-value="2019-10-03T05:13:20+00:00" > 10/03/19, 05:13 </span>
-
Georg Ringer changed Related to #107948 <span data-processor="relativetime" data-value="2025-10-31T08:11:15+00:00" > 10/31/25, 08:11 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 92365 status
NewUnder Review <span data-processor="relativetime" data-value="2026-01-17T19:35:39+00:00" > 01/17/26, 19:35 </span> -
Gerrit Code Review pushed patch set 2 for main to change 92365 <span data-processor="relativetime" data-value="2026-01-19T14:22:05+00:00" > 01/19/26, 14:22 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 92365 <span data-processor="relativetime" data-value="2026-01-20T15:36:53+00:00" > 01/20/26, 15:36 </span>
-
Gerrit Code Review pushed patch set 4 for main to change 92365 <span data-processor="relativetime" data-value="2026-01-21T07:09:13+00:00" > 01/21/26, 07:09 </span>
-
Benni Mack commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-01-21T11:15:08+00:00" > 01/21/26, 11:15 </span> -
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2026-03-31T09:00:27+00:00" > 03/31/26, 09:00 </span>
Applied in changeset commit:a991ff713421cf14fdd65d68255c310ae3afb765.