Skip to content

Commit

Permalink
Merge pull request #146 from jf---/jf/live_editor_fix
Browse files Browse the repository at this point in the history
OS differences in line endings stop the applib/live_editor from working
  • Loading branch information
sccolbert committed Mar 31, 2014
2 parents e732d2b + 39a2939 commit 0a54944
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions enaml/applib/live_editor_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,15 @@ def _post_validate_model_text(self, old, new):
This validator replaces CRLF with LF characters.
"""
return new.replace('\r\n', '\n')
return new.replace('\r\n', '\n').replace('\r', '\n')

def _post_validate_view_text(self, old, new):
""" Post validate the view text.
This validator replaces CRLF with LF characters.
"""
return new.replace('\r\n', '\n')
return new.replace('\r\n', '\n').replace('\r', '\n')

#--------------------------------------------------------------------------
# Observers
Expand Down

0 comments on commit 0a54944

Please sign in to comment.