Skip to content

Commit

Permalink
Fix line breaks at the start/end of a component being ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
booky10 committed Jul 26, 2023
1 parent 3eabd0f commit 2cd495c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ index 26e393051d2c5fe84b8ae6a33b376efab6198816..b21f7a41581ddf36d61e206366c63987
}
diff --git a/src/main/java/dev/booky/cloudplane/ComponentUtil.java b/src/main/java/dev/booky/cloudplane/ComponentUtil.java
new file mode 100644
index 0000000000000000000000000000000000000000..d8b15521dea2c5bbb75f943df03b3aafb0219c83
index 0000000000000000000000000000000000000000..a9a0117234026f119a64c2ae6c51473015ae2eab
--- /dev/null
+++ b/src/main/java/dev/booky/cloudplane/ComponentUtil.java
@@ -0,0 +1,70 @@
Expand Down Expand Up @@ -80,7 +80,7 @@ index 0000000000000000000000000000000000000000..d8b15521dea2c5bbb75f943df03b3aaf
+ continue;
+ }
+
+ String[] strings = StringUtils.split(textComp.content(), '\n');
+ String[] strings = StringUtils.splitPreserveAllTokens(textComp.content(), '\n');
+ if (strings.length == 1) {
+ currentComponents.add(part);
+ continue;
Expand Down

0 comments on commit 2cd495c

Please sign in to comment.