Better prettyprinting. Untested.
This commit is contained in:
parent
4e6a9c299f
commit
4023be9612
1 changed files with 7 additions and 1 deletions
|
@ -319,7 +319,6 @@ public class UnicodeUtils implements UnicodeConstants {
|
|||
|| cp == '^'
|
||||
|| cp == '&'
|
||||
|| cp == '*'
|
||||
|| cp == '\t'
|
||||
|| cp == ':'
|
||||
|| cp == '['
|
||||
|| cp == ']'
|
||||
|
@ -329,6 +328,13 @@ public class UnicodeUtils implements UnicodeConstants {
|
|||
|| cp == '}')
|
||||
return new String(new char[] { cp });
|
||||
}
|
||||
if ('\t' == cp)
|
||||
return "\\t";
|
||||
if ('\n' == cp)
|
||||
return "\\n";
|
||||
if ('\r' == cp)
|
||||
return "\\r";
|
||||
|
||||
if (cp < '\u0010')
|
||||
return "\\u000" + Integer.toHexString((int)cp);
|
||||
else if (cp < '\u0100')
|
||||
|
|
Loading…
Reference in a new issue