Pārlūkot izejas kodu

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

everywhere.z 2 gadi atpakaļ
vecāks
revīzija
d40198dc2e

+ 1 - 1
liteflow-core/src/main/java/com/yomahub/liteflow/parser/helper/ParserHelper.java

@@ -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

+ 1 - 1
liteflow-testcase-el/liteflow-testcase-el-script-groovy-springboot/src/test/resources/xml-script/flow.el.xml

@@ -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){