# HG changeset patch # User Kyle Lippincott # Date 1613592045 28800 # Node ID 96ed73c5c6cac2a39cbe6b163f62e8d0e04585db # Parent 84affb254cdfccc8bd90dd8ab7f59acc4c9bcfd5 doc: remove .strip() for a docstring This shouldn't be necessary, and by stripping it (and removing the trailing newline) it causes issues with Mercurial's doc/gendoc.py's RST output, since there's no newline separating this string and the thing that comes after it. I believe that the `.strip()` has been in there since the beginning, but I have not found a reason for its existence. It's possible that this was required in older Mercurial versions, but is no longer required? Notably, the tests (which include an invocation of `hg help evolution`) still pass with this change. ### Alternatives considered - Making gendoc.py robust against this. This was rejected since there's no need for the .strip() as far as I can tell, and this is the only case I know of that would need such logic. diff -r 84affb254cdf -r 96ed73c5c6ca hgext3rd/evolve/__init__.py --- a/hgext3rd/evolve/__init__.py Tue Nov 24 16:33:24 2020 -0800 +++ b/hgext3rd/evolve/__init__.py Wed Feb 17 12:00:45 2021 -0800 @@ -241,7 +241,7 @@ [experimental] evolution=all -""".strip() +""" import sys