Skip to content

ENH: Strip trailing spaces from continuation in multiline arrayprint - #10129

Merged
mhvk merged 1 commit into
numpy:masterfrom
eric-wieser:remove-trailing-space
Nov 30, 2017
Merged

mhvk merged 1 commit into
numpy:masterfrom
eric-wieser:remove-trailing-space

Conversation

@eric-wieser

@eric-wieser eric-wieser commented Nov 30, 2017 •

Copy link
Copy Markdown
Member

This is otherwise pretty strict about trailing spaces, so we may as well cut them here too, especially since the repr has changed here already

Extracted from #10123, and with tests added - it turns out that we never tested this code path.

Milestoned for 1.14 since it's a formatting change

This is otherwise pretty strict about trailing spaces, so we may as well cut them here too, especially since the repr has changed here already.

The newlines look better to me for multi-dimensional arrays too.

@mhvk mhvk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@mhvk

mhvk commented Nov 30, 2017

Copy link
Copy Markdown
Contributor

I'll also merge this, since I think it is "obviously good".

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.

2 participants