Xcode XLIFF Export should slash-escape Strings
| Originator: | oliver.drobnik | ||
| Number: | rdar://23410569 | Date Originated: | Nov 5, 2015 |
| Status: | Open | Resolved: | |
| Product: | Xcode | Product Version: | 7.1 |
| Classification: | Other Bug | Reproducible: | Always |
Summary: Xcode does not escape newlines present in labels, e.g. if you have "paragraph1\n\nparagraph2" as label text to make it two paragraphs. This causes the output to be be modified by POEditor.com which seems to expect such escaping and also escapes the translation output with \n. I am unclear about whether or not the XLIFF format would require slash-escaping for all strings. But in practice it looks like POEditor expects it and this makes it the de facto standard. Steps to Reproduce: 1. Make a label in a storyboard's view controller that has two newlines between text 2. export XLIFF Expected Results: <source>paragraph1\n\nparagraph2</source> Actual Results: <source>paragraph1 paragraph2</source>
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
I would expect that the trans-unit element in the xliff to have xml:space="preserve" attribute without escaping the newline characters.