commit 55af9cb006563032e35fcc8bc5c8c1284c0344da Author: Georg Baum <b...@lyx.org> Date: Thu May 29 14:44:38 2014 +0200
Fix the fix MAC-style (pre-OS X) line ends were not recognized anymore diff --git a/lib/lyx2lyx/LyX.py b/lib/lyx2lyx/LyX.py index 93006c3..5ee8d5f 100644 --- a/lib/lyx2lyx/LyX.py +++ b/lib/lyx2lyx/LyX.py @@ -147,7 +147,7 @@ def get_backend(textclass): def trim_eol(line): " Remove end of line char(s)." - if line[-1] != '\n': + if line[-1] != '\n' and line[-1] != '\r': # May happen for the last line of a document return line if line[-2:-1] == '\r':