Improved line ending normalisation, bug fixes

System line ending characters are now added at the end of all formatting
FIXED Unnecessary HTTP protocol would be added to links beginning '//'
FIXED Semicolon line splitting now more selective (will be improved in
future commits)