TextCap cap = tr.getTextCap();\r
String tabs = null;\r
for (char c : tr.getRawText().toCharArray()) {\r
- if(c == '\t') {\r
- if (tabs == null) {\r
- tabs = tab2space(tr);\r
- }\r
- buf.append(tabs);\r
- continue;\r
- }\r
-\r
- switch (cap) {\r
- case ALL: c = Character.toUpperCase(c); break;\r
- case SMALL: c = Character.toLowerCase(c); break;\r
- case NONE: break;\r
+ switch (c) {\r
+ case '\t':\r
+ if (tabs == null) {\r
+ tabs = tab2space(tr);\r
+ }\r
+ buf.append(tabs);\r
+ break;\r
+ case '\u000b':\r
+ buf.append('\n');\r
+ break;\r
+ default:\r
+ switch (cap) {\r
+ case ALL: c = Character.toUpperCase(c); break;\r
+ case SMALL: c = Character.toLowerCase(c); break;\r
+ case NONE: break;\r
+ }\r
+ \r
+ buf.append(c);\r
+ break;\r
}\r
-\r
- buf.append(c);\r
}\r
\r
return buf.toString();\r