Commit 65ef930d authored by Xavier Perseguers's avatar Xavier Perseguers
Browse files

[BUGFIX] XLIFF should not have xml:space="preserve" forced

Change-Id: Ic01e58ed244de79c2fdf2e011230f7ec05c6f5be
Reviewed-on: http://review.typo3.org/41119


Reviewed-by: Xavier Perseguers's avatarXavier Perseguers <xavier@typo3.org>
Tested-by: Xavier Perseguers's avatarXavier Perseguers <xavier@typo3.org>
parent 9e9ae0a8
......@@ -36,8 +36,6 @@ function check_available_languages() {
function sanitize_template_file() {
if [ "$1" != "" ] && [ -f "$1" ]; then
xmlstarlet ed -d "/xliff/file[@xml:space]/@xml:space" $1 | \
xmlstarlet ed -d "/xliff/file/body/trans-unit[@xml:space]/@xml:space" | \
xmlstarlet ed --insert "/xliff/file/body/trans-unit" --type attr -n xml:space -v preserve | \
xmlstarlet ed -d "/xliff/file/body/trans-unit/target" | \
xmlstarlet ed -d "/xliff/file[@target-language]/@target-language" | \
xmlstarlet ed -d "/xliff/file/body/trans-unit[@approved]/@approved" | \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment