Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Workaround property list indent #10364

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

timhoffm
Copy link
Member

@timhoffm timhoffm commented Feb 1, 2018

PR Summary

This is a simple workaround for an incorrect indentation of auto-generated property tables (#10161).

The current code had a fixed indent of 2. This PR simply increases it to 4. Of course, this is not the technically elegant solution, but it should do the trick.

  • Within parameter lists, the parameters are usually indented by 4 spaces. The two spaces resulted in a unexpected dedent of the table with respect to the parameter description (Docstring interpolation does not work correctly for indented insertions #10161). The 4 spaces will now result in a table on the same level as the text.

  • If the table was used in a regular paragraph, changing the indent from 2 to 4 should not have an effect for ReST either. (Not sure if this case happens at all.

This PR should do as a workaround to fix this for 2.2. Still, a proper indentation handling is desirable and should be pursued in the above issue.

@timhoffm timhoffm force-pushed the workaround-property-list-indent branch from efba29b to de97fb2 Compare February 1, 2018 23:07
@timhoffm timhoffm mentioned this pull request Feb 27, 2018
@jklymak jklymak merged commit e8c651d into matplotlib:master Mar 4, 2018
@timhoffm timhoffm deleted the workaround-property-list-indent branch March 4, 2018 00:34
@timhoffm
Copy link
Member Author

timhoffm commented Mar 4, 2018

Should this be backported somewhere? I'm not familiar neither with the backport policy nor with the mechanism.

@jklymak
Copy link
Member

jklymak commented Mar 4, 2018

Oops, sorry, I should have milestoned it.

@jklymak
Copy link
Member

jklymak commented Mar 4, 2018

@meeseeksdev backport to v2.2.x

@jklymak jklymak added this to the v2.2.0 milestone Mar 4, 2018
lumberbot-app bot pushed a commit that referenced this pull request Mar 4, 2018
jklymak added a commit that referenced this pull request Mar 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants