fix newlines and espaced single quotes

This commit is contained in:
Ben Fry
2014-11-15 22:36:30 -07:00
parent 50703d031f
commit dbe6466c15

View File

@@ -300,6 +300,11 @@ public class Language {
if (equals != -1) {
String key = line.substring(0, equals).trim();
String value = line.substring(equals + 1).trim();
// fix \n and \'
value = value.replaceAll("\\\\n", "\n");
value = value.replaceAll("\\\\'", "'");
table.put(key, value);
}
}