Closed zhulaojianke closed 7 years ago
不好意思,我搞错了,我本地文件被我给弄坏了,打包到发布版里面了 还有一点,你改的有点问题,下面这个是对的 newline = '\r' if medit.GetInsertNewLineType() == MadNewLineType.DOS: newline += '\n' elif medit.GetInsertNewLineType() == MadNewLineType.UNIX: newline = '\n'
Reopen the issue for others found the same one.
是,您考虑了不同的操作系统 :)
额,那个不是操作系统,是操作系统对文本文件行结束的定义,举例来说,你把Linux,或者Mac下的文本文件拷贝到windows上,你就看出区别了。很简单的例子就是浏览网站,多数网站都是Linux搭建的。
On Sun, Jul 2, 2017 at 9:05 AM, Zhu Xinyan notifications@github.com wrote:
是,您考虑了不同的操作系统 :)
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/LiMinggang/madedit-mod/issues/232#issuecomment-312464383, or mute the thread https://github.com/notifications/unsubscribe-auth/AEn2HBnJB6Gtulq9DjCGif23LC_fcoBaks5sJuzOgaJpZM4OI6oI .
在insertline.mpy中有一句: newline = "1111111111111111111111111111111111111111111112" 这使得用户插入的是重复这个字符串, 我给改成: newline = '\r\n' 看来是可以了。