QA - issues with whitespace normalization
Issue #535
resolved
Hi,
The QA steps seem to have a whitespace normalization issue as it does not detect leading and trailing whitespaces, nor double-spaces when added to the config. Here is an example:
The filter used to the files is the SDLXLIFF one. The issue has not been tested with any other filter.
Comments (4)
-
-
reporter Excellent, adding the
xml:space="preserve"
to the file fixes the issue.Thanks for your confirmation about M30!
-
-
assigned issue to
-
assigned issue to
-
- changed status to resolved
Resolving this, as it is a duplicate of issue
#207. - Log in to comment
This may be a filter issue. SDL has a strange interpretation of XML whitespace, which it preserves by default. (Sometimes, it even specifies
xml:space="default"
in XLIFF.) The Okapi XLIFF filter usually assumes thatxml:space="preserve"
must be present in the XLIFF for whitespace to be meaningful.As an experiment, can you try editing your SDLXLIFF file and adding
xml:space="preserve"
somewhere (on the<xliff>
or<body>
element, for example)? Then see if this makes a difference. If fixes it, there is a change in M30 which will make the SDLXLIFF filter assume this behavior by default.