akof1314 / CoolFormat

CoolFormat Source Code Formatter
http://blog.csdn.net/akof1314/article/details/5355948
539 stars 147 forks source link

文本过长会自动换行,并且解析错误 #51

Open peach5460 opened 6 years ago

peach5460 commented 6 years ago

我有程序里面返回的一个json字符串,只有一行,但是有40W个字符. 复制到notpad++里面时正常显示为1行 但是复制到CoolFormat里面时,显示为20行 并且点击格式化时,因为在不正确的地方换行,导致解析错误

image image 由上两图可见,就是在nullzhe这个地方,切换了换行,变成了第七行以nul结尾,第八行以l开头,导致解析错误

akof1314 commented 6 years ago

这个编辑器还不支持那么长的一行,你可以用命令行模式 ----- 原始邮件 ----- 发件人:RogerLee notifications@github.com 收件人:akof1314/CoolFormat CoolFormat@noreply.github.com 抄送人:Subscribed subscribed@noreply.github.com 主题:[akof1314/CoolFormat]文本过长会自动换行,并且解析错误(#51) 日期:2018年08月15日 11点52分

我有程序里面返回的一个json字符串,只有一行,但是有40W个字符.

复制到notpad++里面时正常显示为1行

但是复制到CoolFormat里面时,显示为20行

并且点击格式化时,因为在不正确的地方换行,导致解析错误

由上两图可见,就是在nullzhe这个地方,切换了换行,变成了第七行以nul结尾,第八行以l开头,导致解析错误

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

spilledyear commented 5 years ago

这个编辑器还不支持那么长的一行,你可以用命令行模式 ----- 原始邮件 ----- 发件人:RogerLee notifications@github.com 收件人:akof1314/CoolFormat CoolFormat@noreply.github.com 抄送人:Subscribed subscribed@noreply.github.com 主题:[akof1314/CoolFormat]文本过长会自动换行,并且解析错误(#51) 日期:2018年08月15日 11点52分 我有程序里面返回的一个json字符串,只有一行,但是有40W个字符. 复制到notpad++里面时正常显示为1行 但是复制到CoolFormat里面时,显示为20行 并且点击格式化时,因为在不正确的地方换行,导致解析错误 由上两图可见,就是在nullzhe这个地方,切换了换行,变成了第七行以nul结尾,第八行以l开头,导致解析错误 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

请问如何使用命令模式,我也遇到了这个问题