修复xml CDATA里的换行被忽略的bug

This commit is contained in:
everywhere.z
2022-10-24 17:20:42 +08:00
parent a662102fac
commit d40198dc2e
2 changed files with 2 additions and 2 deletions

View File

@@ -128,7 +128,7 @@ public class ParserHelper {
name = e.attributeValue(NAME);
clazz = e.attributeValue(_CLASS);
type = e.attributeValue(TYPE);
script = e.getTextTrim();
script = e.getText();
file = e.attributeValue(FILE);
// 构建 node

View File

@@ -25,7 +25,7 @@
]]>
</node>
<node id="s2" name="选择脚本" type="switch_script">
<node id="s2" name="选择脚本" type="switch_script" language="groovy">
<![CDATA[
count = defaultContext.getData("count");
if(count > 100){