mirror of
https://github.com/octoleo/plantuml-server.git
synced 2024-06-09 03:32:31 +00:00
code formatting
This commit is contained in:
parent
b995dcdb61
commit
c94711c2d5
|
@ -82,7 +82,7 @@ public class PlantUmlServlet extends HttpServlet {
|
||||||
final StringBuffer sb = new StringBuffer(string.length());
|
final StringBuffer sb = new StringBuffer(string.length());
|
||||||
// true if last char was blank
|
// true if last char was blank
|
||||||
final int length = string.length();
|
final int length = string.length();
|
||||||
for (int offset = 0; offset < length; ) {
|
for (int offset = 0; offset < length;) {
|
||||||
final int c = string.codePointAt(offset);
|
final int c = string.codePointAt(offset);
|
||||||
if (c == ' ') {
|
if (c == ' ') {
|
||||||
sb.append(' ');
|
sb.append(' ');
|
||||||
|
@ -102,7 +102,7 @@ public class PlantUmlServlet extends HttpServlet {
|
||||||
int ci = 0xffffff & c;
|
int ci = 0xffffff & c;
|
||||||
if (ci < 160) {
|
if (ci < 160) {
|
||||||
// nothing special only 7 Bit
|
// nothing special only 7 Bit
|
||||||
sb.append((char)c);
|
sb.append((char) c);
|
||||||
} else {
|
} else {
|
||||||
// Not 7 Bit use the unicode system
|
// Not 7 Bit use the unicode system
|
||||||
sb.append("&#");
|
sb.append("&#");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user