Commits

Anonymous committed fa2db02

removing \r when using dos line-endings

  • Participants
  • Parent commits 56eea11

Comments (0)

Files changed (1)

ropemacs/interface.py

             coding = lisp['buffer-file-coding-system'].value()
             if coding is not None:
                 coding_name = coding.text
+                if coding_name.endswith('dos'):
+                    result = result.replace('\r', '')
                 if coding_name.split('-')[-1] in ('dos', 'unix', 'mac'):
                     coding_name = coding_name[:coding_name.rindex('-')]
                 if coding_name.split('-')[0] in ('mule', 'iso'):