[ALOY-819] Alloy 1.2.1 escapes control values contained within XML
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2013-09-06T12:40:23.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | regression |
Reporter | Davide Cassenti |
Assignee | Tony Lukasavage |
Created | 2013-09-05T17:19:23.000+0000 |
Updated | 2014-06-22T13:23:19.000+0000 |
Description
Problem description
When using a control character (e.g. \n) inside XML with Alloy 1.2.1, the character is escaped and shown in the text.Steps to reproduce
Use the following code in index.xml:
<Alloy>
<Window>
<Label id="label" text="Click me to open\n\nan Image"></Label>
</Window>
</Alloy>
Running the code on iPhone, I can see \n\n in the text. With Alloy 1.2.0 the new line is shown as a new line.
[~dcassenti] I believe this is a duplicate of ALOY-813. Can you try running this sample against the 1_2_X branch of Alloy on Github and see if it resolves the error. You can install it straight from github like this:
Duplicate of ALOY-813