Fix improper dos line endings

This commit is contained in:
Andrew Resch 2009-10-30 19:08:23 +00:00
commit d110b23a9f
3 changed files with 42 additions and 42 deletions

View file

@ -240,7 +240,7 @@ class Screen(CursesStdIO):
# This is the last string so lets append some " " to it
s += " " * (self.cols - (col + len(s)) - 1)
if isinstance(s, unicode):
#Have to use replace as character counting has already been done
#Have to use replace as character counting has already been done\
s = s.encode(self.encoding, 'replace')
self.stdscr.addstr(row, col, s, color)
col += len(s)