Fixed issue #994

Fixed Issue #994
It is possible to set EOL type in preferences.
Added test to End of line in file write to disk