python - wxPython StyledTextCtrl, weird 'LF' -


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

how remove them?

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

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -