When opening a dos2unix converted file in vi, it shows: [noeol]. Therefore, it would be great if you add an option (or it should be by default) to append a newline character after the last line when there was none.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2023-07-02
Thanks for the feature! It would be nice if --info also reported whether the file ends in a newline or not (maybe only report it if --add-eol is also on?).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
That's a good idea. I will make it optional.
kind regards,
Erwin
I created a beta version which will add a line break to the last line when there isn't one when option -e is used. See https://waterlan.home.xs4all.nl/dos2unix.html
Thanks for the feature! It would be nice if --info also reported whether the file ends in a newline or not (maybe only report it if --add-eol is also on?).
Nice idea.