[modelica mode] fix trailing whitespaces

- fix trailing whitespaces
- fix eol conversion