Hello, Konstantin.

Sometime you committed files with broken new-line terminator (0D 0D
0A). I don't know why it happens but it is very inconveniently to view
and edit such files.

I have written simple Ruby scripts which cures such files and replaces
incorrect line terminator with correct one. I am using it for Windows
and its works perfect.

Usage: ruby fix-nl.rb <directory to be processed>

WARNING: Script replaces processed files. Save your files somewhere
before processing to be sure that you will able to rollback changes
made by script.
-- 
anatol

Attachment: fix-nl.rb
Description: Binary data

Reply via email to