File tree Expand file tree Collapse file tree
core/src/mindustry/ui/builder Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -126,7 +126,12 @@ private String parseString(){
126126 StringBuilder sb = new StringBuilder ();
127127 while (!atEnd () && peek () != '"' ){
128128 char c = src .charAt (pos );
129- if (c == '\\' && pos + 1 < src .length ()){ sb .append (src .charAt (pos + 1 )); pos += 2 ; continue ; }
129+ if (c == '\\' && pos + 1 < src .length ()){
130+ char next = src .charAt (pos + 1 );
131+ sb .append (next == 'n' ? '\n' : next ); //parse \n
132+ pos += 2 ;
133+ continue ;
134+ }
130135 sb .append (c );
131136 pos ++;
132137 }
Original file line number Diff line number Diff line change @@ -26,4 +26,4 @@ org.gradle.caching=true
2626org.gradle.internal.http.socketTimeout =100000
2727org.gradle.internal.http.connectionTimeout =100000
2828android.enableR8.fullMode =false
29- archash =6e8f4ebeb1
29+ archash =bd04d32df8
You can’t perform that action at this time.
0 commit comments