I was trying to be clever with newline and save a character,
but I forgot about that cleverness in fromPersistent, so skip it for now.
This commit is contained in:
@@ -132,7 +132,7 @@ public class Transformers
|
|||||||
buf.append('\uFFFC');
|
buf.append('\uFFFC');
|
||||||
} else {
|
} else {
|
||||||
s = s.replace("\\", "\\\\"); // turn \ into \\
|
s = s.replace("\\", "\\\\"); // turn \ into \\
|
||||||
s = s.replace("\n", "\\n"); // turn newline into \n
|
s = s.replace("\n", "\\\n"); // preslash a newline
|
||||||
s = s.replace("\uFFFC", "\\\uFFFC"); // preslash the nullmarker too
|
s = s.replace("\uFFFC", "\\\uFFFC"); // preslash the nullmarker too
|
||||||
buf.append(s).append('\n');
|
buf.append(s).append('\n');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user