LiMinggang / madedit-mod

MadEdit-Mod is a cross platform Text/Hex editor(based on the madedit project @ sourceforge)
GNU General Public License v3.0
124 stars 27 forks source link

A wrong string in the "insertline.mpy" #232

Closed zhulaojianke closed 7 years ago

zhulaojianke commented 7 years ago

在insertline.mpy中有一句: newline = "1111111111111111111111111111111111111111111112" 这使得用户插入的是重复这个字符串, 我给改成: newline = '\r\n' 看来是可以了。

LiMinggang commented 7 years ago

不好意思,我搞错了,我本地文件被我给弄坏了,打包到发布版里面了 还有一点,你改的有点问题,下面这个是对的 newline = '\r' if medit.GetInsertNewLineType() == MadNewLineType.DOS: newline += '\n' elif medit.GetInsertNewLineType() == MadNewLineType.UNIX: newline = '\n'

LiMinggang commented 7 years ago

Reopen the issue for others found the same one.

zhulaojianke commented 7 years ago

是,您考虑了不同的操作系统 :)

LiMinggang commented 7 years ago

额,那个不是操作系统,是操作系统对文本文件行结束的定义,举例来说,你把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 .