Code reformat
This commit is contained in:
@@ -26,7 +26,7 @@ public final class CommonMarkHelper {
|
||||
if (parent1 == parent2 && parent1 instanceof Paragraph) {
|
||||
document = new Document();
|
||||
Node child = parent1.getFirstChild();
|
||||
while(child != null) {
|
||||
while (child != null) {
|
||||
Node nextChild = child.getNext();
|
||||
document.appendChild(child);
|
||||
child = nextChild;//child.getNext();
|
||||
|
||||
@@ -20,7 +20,7 @@ public final class StringHelper {
|
||||
int length = strings.size();
|
||||
if (length < 1) {
|
||||
return "";
|
||||
} else {
|
||||
} else {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
boolean isFirst = true;
|
||||
for (String element : strings) {
|
||||
@@ -46,7 +46,7 @@ public final class StringHelper {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
int index = 0;
|
||||
int lastIndex = length - 1;
|
||||
for(String element : strings) {
|
||||
for (String element : strings) {
|
||||
if (index > 0 && index < lastIndex) {
|
||||
sb.append(delimiter);
|
||||
} else if (index > 0 && index >= lastIndex) {
|
||||
|
||||
Reference in New Issue
Block a user