mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix the fix
MAC-style (pre-OS X) line ends were not recognized anymore
This commit is contained in:
parent
20bcaec061
commit
55af9cb006
@ -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':
|
||||
|
Loading…
Reference in New Issue
Block a user