|
From: Kevin A. <ka...@us...> - 2004-10-05 17:38:25
|
Update of /cvsroot/pythoncard/PythonCard In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26445 Modified Files: util.py Log Message: updated normalizeEOL Index: util.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/util.py,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 *** util.py 26 Sep 2004 16:10:52 -0000 1.35 --- util.py 5 Oct 2004 17:37:40 -0000 1.36 *************** *** 95,99 **** def normalizeEOL(text): """Return text with line endings replaced by \n.""" ! return text.replace('\r\n', '\n').replace('\r', '\n') # KEA doc handling adapted from python_docs --- 95,100 ---- def normalizeEOL(text): """Return text with line endings replaced by \n.""" ! #return text.replace('\r\n', '\n').replace('\r', '\n') ! return '\n'.join(text.splitlines()) # KEA doc handling adapted from python_docs |