Skip to content

Commit

Permalink
Default newline node to skip parsing of nested nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
nieqiurong committed Dec 29, 2024
1 parent e08b503 commit 9022469
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ protected MixedSqlNode parseDynamicTags(XNode node) {
XNode child = node.newXNode(children.item(i));
if (child.getNode().getNodeType() == Node.CDATA_SECTION_NODE || child.getNode().getNodeType() == Node.TEXT_NODE) {
String data = child.getStringBody("");
if (data.trim().isEmpty()) {
continue;
}
TextSqlNode textSqlNode = new TextSqlNode(data);
if (textSqlNode.isDynamic()) {
contents.add(textSqlNode);
Expand Down

0 comments on commit 9022469

Please sign in to comment.