Commit b07f01a8 authored by pengxin's avatar pengxin

空白问题处理。

parent 42468025
......@@ -393,8 +393,8 @@ public class DatasetOutputServiceImpl extends BaseService<DatasetOutput, Long> i
String output = rootNode.get(DatasetConstant.OUTPUT).textValue();
// 对包含换行符的字符串进行处理
instruction = instruction.replace("\n", "");
output = output.replace("\n", "");
instruction = instruction.replaceAll("\n", " ");
output = output.replaceAll("\n", " ");
pw.println(instruction + "," + output);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment