删除 text 中的换行符 \n,保留回车;例如 'a\nb' 返回 'ab'。
text
\n
'a\nb'
'ab'
String removeLineBreaks(String text) => text.replaceAll('\n', '');