Skip to content

Instantly share code, notes, and snippets.

@iantearle
Created September 10, 2013 10:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iantearle/6507728 to your computer and use it in GitHub Desktop.
Save iantearle/6507728 to your computer and use it in GitHub Desktop.
In order to start a string definition with a preceding space in Appcelerator i18n strings.xml file you need to escape the space. Bare in mind however you cannot add the javascript space character \s but simply \ will work.
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<string name="start_with_space">\ I have a space before me.</string>
</resources>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment