python - wxPython StyledTextCtrl, weird 'LF' -
i working on simple text editor in wxpython, , noticed problem:
when press 'return' key, editor adds weird 'lf':

how prevent program printing them?
if on windows carriage return carriage return, line feed, (0x0a, 0x0d) - (on old macs other way round) - stripping off last character line.strip() should rid of or can search , replace chr(0x0a) , chr(0x0b) '' in strings.
Comments
Post a Comment