mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-02-08 05:48:12 +00:00
don't escape unicode whitespace in json files
This commit is contained in:
parent
c9bb2b4e55
commit
2b54f1cf1a
@ -1049,7 +1049,7 @@ public class Utilities {
|
|||||||
b.append("\\\\");
|
b.append("\\\\");
|
||||||
else if (c == ' ')
|
else if (c == ' ')
|
||||||
b.append(" ");
|
b.append(" ");
|
||||||
else if (isWhitespace(c)) {
|
else if (c == '\r' || c == '\n') { // was isWhitespace(c), but this escapes unicode characters, and seems unnecessary
|
||||||
b.append("\\u"+Utilities.padLeft(Integer.toHexString(c), '0', 4));
|
b.append("\\u"+Utilities.padLeft(Integer.toHexString(c), '0', 4));
|
||||||
} else if (((int) c) < 32)
|
} else if (((int) c) < 32)
|
||||||
b.append("\\u" + Utilities.padLeft(Integer.toHexString(c), '0', 4));
|
b.append("\\u" + Utilities.padLeft(Integer.toHexString(c), '0', 4));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user