Skip to content

Commit a0e6ffe

Browse files
committed
Revert #3349
Regression when where node is used without new lines (cherry picked from commit 398fe8e)
1 parent d70d2c2 commit a0e6ffe

File tree

2 files changed

+1
-67
lines changed

2 files changed

+1
-67
lines changed

src/main/java/org/apache/ibatis/scripting/xmltags/XMLScriptBuilder.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2009-2024 the original author or authors.
2+
* Copyright 2009-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -80,9 +80,6 @@ protected MixedSqlNode parseDynamicTags(XNode node) {
8080
XNode child = node.newXNode(children.item(i));
8181
if (child.getNode().getNodeType() == Node.CDATA_SECTION_NODE || child.getNode().getNodeType() == Node.TEXT_NODE) {
8282
String data = child.getStringBody("");
83-
if (data.trim().isEmpty()) {
84-
continue;
85-
}
8683
TextSqlNode textSqlNode = new TextSqlNode(data);
8784
if (textSqlNode.isDynamic()) {
8885
contents.add(textSqlNode);

src/test/java/org/apache/ibatis/scripting/xmltags/XMLScriptBuilderTest.java

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)