fix line breaks on save