diff --git a/backend/src/main/java/io/metersphere/excel/listener/TestCaseDataListener.java b/backend/src/main/java/io/metersphere/excel/listener/TestCaseDataListener.java index f1d2d639c5..12d78b9625 100644 --- a/backend/src/main/java/io/metersphere/excel/listener/TestCaseDataListener.java +++ b/backend/src/main/java/io/metersphere/excel/listener/TestCaseDataListener.java @@ -269,12 +269,12 @@ public class TestCaseDataListener extends EasyExcelListener { String[] stepRes = new String[1]; if (data.getStepDesc() != null) { - stepDesc = data.getStepDesc().split("\r\n"); + stepDesc = data.getStepDesc().split("\r\n|\n"); } else { stepDesc[0] = ""; } if (data.getStepResult() != null) { - stepRes = data.getStepResult().split("\r\n"); + stepRes = data.getStepResult().split("\r\n|\n"); } else { stepRes[0] = ""; }