10000 Fix a format error in documenting_mpl.rst by timhoffm · Pull Request #13010 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Fix a format error in documenting_mpl.rst #13010

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
merged 1 commit into from
Dec 18, 2018

Conversation

timhoffm
Copy link
Member
@timhoffm timhoffm commented Dec 17, 2018

PR Summary

Fixes an unintended line break, which made the example non-compliant with numpydoc.

I was sure last time I tried, the continued line would not allow any indent. However, no it works with indents. Not sure if this is due to some version updates.

Anyway, changing all occurences as this gives much nicer plain-text docstrings.

anntzer
anntzer previously approved these changes Dec 17, 2018
@timhoffm timhoffm force-pushed the fix-documenting-format branch from 8a7cc4e to 972ffaf Compare December 17, 2018 20:26
@timhoffm timhoffm changed the title Fix a format error in documenting_mpl.rst Improve format of long parameter lines in docstrings Dec 17, 2018
@timhoffm timhoffm added this to the v3.1 milestone Dec 17, 2018
@timhoffm timhoffm dismissed anntzer’s stale review December 17, 2018 20:36

Sorry, generalized the PR as we can now do much better formatting. Therefore dismissing your review.

@anntzer
Copy link
Contributor
anntzer commented Dec 17, 2018

fwiw adding the indents makes the things look quite ugly on pydoc or ipython's ??, because they show up as spaces in the middle of the line.

@timhoffm
Copy link
Member Author
timhoffm commented Dec 17, 2018

You're right with pydoc:

image

ipython looks ok:

image

Pydoc seems to interpret the line continuation, ipython does not.

And now, which do we favor? ipython gets better pydoc gets worse.

@anntzer
Copy link
Contributor
anntzer commented Dec 17, 2018

ipython looks worse with ? (? behaves like pydoc whereas ?? just gives the raw source)
so ipython's ? and ?? cancel each other and I prefer making pydoc look ok :)

@timhoffm
Copy link
Member Author
timhoffm commented Dec 17, 2018

Ok, got it. Reverted and added a note so that nobody will try that again 😄 .

@anntzer Thanks for watching out. Could you please re-approve?

@timhoffm timhoffm force-pushed the fix-documenting-format branch from 972ffaf to 3ae94c6 Compare December 17, 2018 21:07
@timhoffm timhoffm changed the title Improve format of long parameter lines in docstrings Fix a format error in documenting_mpl.rst Dec 17, 2018
@dstansby dstansby merged commit 22649b6 into matplotlib:master Dec 18, 2018
@timhoffm timhoffm deleted the fix-documenting-format branch December 18, 2018 23:45
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
0