mirror of
https://github.com/processing/processing4.git
synced 2026-02-04 06:09:17 +01:00
fix newlines and espaced single quotes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user