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:
Ray Greenwell
2010-07-02 03:56:26 +00:00
parent f4c7b7fef4
commit ce1d06e82b
@@ -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');
} }