Gedit
Revision 1 as of 2008-01-22 09:32:07
Clear message
Windows linebreaks
By default gedit displays both windows and unix linebreaks properly, but it creates unix linebreaks. This can even give a resulting file with a mix of windows and unix linebreaks. It can be a problem if you e.g. want to create .bat files on linux and execute them on windows.
It's possible to convert all linebreaks in a file to windows linebreaks, by enabling the external tools plugin and using this script:
s/\r//g s/$//g s/$/\r/
This can convert all linebreaks to unix linebreaks:
s/\r//g s/$//g