fix the docstring for scale_docs to only strip whitespace at the end (the whitespace at the beginning is needed for alignment)