see https://github.com/mdr/scalariform/issues/37 and https://github.com/mdr/scalariform/issues/51