Windows carriage returns in ZPT documents are becoming the bane of my existance. Can anyone suggest a way to search a file for this and convert them to UNIX style carriage returns. Preferably in Textpad, but a UNIX/Linux based technique (Emacs?) would be helpful too. I can't be the only one experience the explosion of this problem... Harlow Pinson Indepth Learning Email: hpinson@indepthl.com Web: http://www.indepthl.com Voice: 505-994-2135 FAX: 208-475-7678
hpinson@indepthl.com wrote:
Windows carriage returns in ZPT documents are becoming the bane of my existance.
Can anyone suggest a way to search a file for this and convert them to UNIX style carriage returns.
Preferably in Textpad, but a UNIX/Linux based technique (Emacs?) would be helpful too.
With the free editor HTML-Kit you have an option that lets you 'save Unix version' of your file EditPlus2 also has an option to convert file format. A quick google search should give you many pointers to some utilities to convert end of lines in windows. for instance: http://www.freedownloadscenter.com/Utilities/Misc__Utilities/DOS2UNIX_UNIX2D... http://www.ericphelps.com/crlf/ you also can use the DOS version of the unix tr command (available at http://lf.8k.com/TOOLS/TOOLS.HTM). for unix/linux tips on this, google a bit if you don't feel happy with http://www.cdf.toronto.edu/workathome/print.php3?id=49 Hope this helped a bit
I can't be the only one experience the explosion of this problem...
-- David Convent
hpinson@indepthl.com wrote:
Windows carriage returns in ZPT documents are becoming the bane of my existance.
Can anyone suggest a way to search a file for this and convert them to UNIX style carriage returns.
Preferably in Textpad, but a UNIX/Linux based technique (Emacs?) would be helpful too.
I can't be the only one experience the explosion of this problem...
Harlow Pinson Indepth Learning Email: hpinson@indepthl.com Web: http://www.indepthl.com Voice: 505-994-2135 FAX: 208-475-7678
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
I have never run into this regarding zope directly, but I have seen it alot in other applications. dos2unix and unix2dos are two helpful linux commands that I have used. dos2unix will fix the CR/LF. Its pretty handy and can use wildcards. Also found this link on the internet that describes a few different way to do it. http://www.cdf.toronto.edu/workathome/print.php3?id=49 Will Smith
hpinson@indepthl.com wrote:
Windows carriage returns in ZPT documents are becoming the bane of my existance.
Yeah, I too am confusded as to why this has become such a problem. Perhaps you could submit an issue into the Zope collector and we can look at this on the next bug day? cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
participants (4)
-
Chris Withers -
David Convent -
hpinson@indepthl.com -
Will Smith