Commit 0a7329ea authored by pengxin's avatar pengxin

\n换成空格符号

parent a10f5cd1
......@@ -213,8 +213,8 @@ public class DatasetOutputServiceImpl extends BaseService<DatasetOutput, Long> i
String instruction = rootNode.get(DatasetConstant.INSTRUCTION).textValue();
// 替换"\n "为"\n"
output = output.replaceAll("\n ", "\\n");
instruction = instruction.replaceAll("\n ", "\\n");
output = output.replaceAll("\n", " ");
instruction = instruction.replaceAll("\n", " ");
txtData.append(instruction).append("[[").append(output).append("]],\n");
}
String text = txtData.substring(0, txtData.lastIndexOf(",") );
......
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