Copy/Paste Regression in QtConsole #3206

Closed
dhirschfeld opened this Issue Apr 22, 2013 · 1 comment

Comments

Projects
None yet
2 participants
Contributor

dhirschfeld commented Apr 22, 2013

As discussed on list:

http://article.gmane.org/gmane.comp.python.ipython.devel/10253

Copy/Paste no longer seems to be correctly stripping continuation prompts.

takluyver was assigned Apr 22, 2013

Owner

takluyver commented May 15, 2013

PR #3323 should fix this.

takluyver closed this in e3df40c May 18, 2013

@minrk minrk added a commit that referenced this issue May 18, 2013

@minrk minrk Merge pull request #3323 from takluyver/strip-prompts
Strip prompts even if the prompt isn't present on the first line.

Users (including me) often copy and paste examples from just after the first prompt. This checks for prompts in the first two lines of a block, but if they aren't found there, it will ignore prompt-like prefixes in later lines, to minimise interference with multi-line strings etc.

This fixes both incoming copies (transformed before running code) and outgoing (copied from the Qt console).

Closes #3206
689d7bf

@mattvonrocketstein mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this issue Nov 3, 2014

@takluyver takluyver Strip prompts even if the prompt isn't present on the first line.
Users (including me) often copy and paste examples from just after the first
prompt. This checks for prompts in the first two lines of a block, but if they
aren't found there, it will ignore prompt-like prefixes in later lines, to
minimise interference with multi-line strings etc.

Closes gh-3206
2ebcb7c

@mattvonrocketstein mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this issue Nov 3, 2014

@minrk minrk Merge pull request #3323 from takluyver/strip-prompts
Strip prompts even if the prompt isn't present on the first line.

Users (including me) often copy and paste examples from just after the first prompt. This checks for prompts in the first two lines of a block, but if they aren't found there, it will ignore prompt-like prefixes in later lines, to minimise interference with multi-line strings etc.

This fixes both incoming copies (transformed before running code) and outgoing (copied from the Qt console).

Closes #3206
3580d52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment