Better string output

Actually, string that in origin was like
```yaml
a: >
  some
  inline
  content
```

Will be output as:
```yaml
a: |
  some inline content
```

Instead with this edit, will be output accordingly with `line_width` option:
```yaml
# line_width = 100
a: some inline content

# line_width = 11
a: >
  some inline
  content
```

It's not that big of a change, but I think it's nice to have, especially for meticulous people like me :)
I understand that this is here to strip tailing `\n`, that is needed for `elsif str =~ /\n/`. However, this will strip also any other whitespaces and not just at the end of string.

The better solution is to not touch the string and modify the mentioned line as `elsif o =~ /\n[^\Z]/`. This will match any `\n` except empty line at the end of string.