Skip to content

Commit 86f02d2

Browse files
authored
Merge pull request #151 from pwgit-create/develop
Develop
2 parents 9e549ce + 4804384 commit 86f02d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cg/CodeGenerator/CodeGenerator/src/main/java/pn/cg/util/StringUtil.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,11 @@ private static String removeDelimiters(String input, boolean isStartDelimiter) {
152152
if (isStartDelimiter) {
153153
delimiter = CommonStringConstants.JAVA_CODE_GENERATION_START_DELMITER_STRING;
154154
returnValue = RemoveAllExceptTheFirstOccurrenceOfaAWord(returnValue, delimiter);
155+
returnValue = RemoveAllExceptTheFirstOccurrenceOfaAWord(returnValue,delimiter + "\n");
155156
} else if (!isStartDelimiter) {
156157
delimiter = CommonStringConstants.JAVA_CODE_GENERATION_END_DELMITER_STRING;
157158
returnValue = RemoveAllExceptTheLastOccurrenceOfWord(returnValue, delimiter);
159+
returnValue = RemoveAllExceptTheLastOccurrenceOfWord(returnValue,delimiter+"\n");
158160
}
159161
} catch (Exception e) {
160162
log.debug("Error on delimiter String removal process");

0 commit comments

Comments
 (0)