Bug 995907
Summary: | Exported Translation Memory / Project TMX poorly formatted | ||
---|---|---|---|
Product: | [Retired] Zanata | Reporter: | Damian Jansen <djansen> |
Component: | Component-Logic | Assignee: | Sean Flanigan <sflaniga> |
Status: | CLOSED WONTFIX | QA Contact: | Zanata-QA Mailling List <zanata-qa> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | development | CC: | djansen, sflaniga, zanata-bugs |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-11-19 05:30:29 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Damian Jansen
2013-08-12 00:11:24 UTC
I tried to find a way to format tu elements nicely, but I couldn't convince XOM to indent things nicely without also treating all whitespace the same. (Whitespace inside seg elements is significant.) If you enable indenting in XOM Serializer, it stops respecting whitespace, and the only way to change that is to set xml:space="preserve", but this is not allowed by the TMX 1.4 DTD. We might be able to do something with an output filter, or by using a different method of generating XML. I'm not sure it's worth it though. Another workaround might be a client-side script to reformat the XML file. What about this as a workaround? xmllint --format zanata-myproject-master-allLocales.tmx | less Too much effort when xmllint does the job. |