Revised enum LineEnding and added tests
Revised code of SourceCodeFormatter and added tests