[Tutor] Re: removing line ends from Word text files (original) (raw)
Lee Harr missive at hotmail.com
Sat Jul 17 03:37:49 CEST 2004
- Previous message: [Tutor] Tkinter: checking a Text widget for contents/changes
- Next message: [Tutor] taking Python to next level
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
See if your systems have a script called dos2unix. That is the one that I always use when I get one of those dossy files.
If you cannot find that, try searching through the lines for characters around ord(10) ord(11) ord(12) ord(13) as I am pretty sure that ^M is somewhere in there...
Do you mean chr(10-12)? Ord() takes in a character and outputs an integer. Chr() does the opposite.
wups. yep. sorry 'bout that.
Guess I probably meant something like ord(c)==10 orc(c)==11 ...
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
- Previous message: [Tutor] Tkinter: checking a Text widget for contents/changes
- Next message: [Tutor] taking Python to next level
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]