Ignore trailing whitespace in multiline strings

One exception is if the multiline string is a non-doctest docstring. In
that case we remove the trailing whitespace. We also remove the trailing
whitespace if we are in aggressive mode.