You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, see the Rmagic docstring. The decorator destroys all linebreaks. See this response by @rkern on the list for details of a possible solution approach.
The text was updated successfully, but these errors were encountered:
…ocstring
magic_arguments: dedent but otherwise preserve indentation.
Previously magic_arguments stripped all whitespace at the beginning of each line, interfering with formatting syntax which relies on indentation to give context (e.g., code blocks). Now the docstring text is passed through dedent to strip the global indentation before being handed off to `RawDescriptionHelpFormatter` which preserves any remaining indentation.
Thanks to @rkern for suggesting the solution approach.
Closesipythongh-1890.
Previously magic_arguments stripped all whitespace at the beginning of
each line, interfering with formatting syntax which relies on indentation
to give context (e.g., code blocks). Now the docstring text is passed
through dedent to strip the global indentation before being handed off
to RawDescriptionHelpFormatter which preserves any remaining indentation.
Thanks to @rkern for suggesting the solution approach.
Closesipythongh-1890.
…ocstring
magic_arguments: dedent but otherwise preserve indentation.
Previously magic_arguments stripped all whitespace at the beginning of each line, interfering with formatting syntax which relies on indentation to give context (e.g., code blocks). Now the docstring text is passed through dedent to strip the global indentation before being handed off to `RawDescriptionHelpFormatter` which preserves any remaining indentation.
Thanks to @rkern for suggesting the solution approach.
Closesipythongh-1890.
For example, see the Rmagic docstring. The decorator destroys all linebreaks. See this response by @rkern on the list for details of a possible solution approach.
The text was updated successfully, but these errors were encountered: