##// END OF EJS Templates
Fixed whitespace bug when pasting IPython continuation prompt....
Pascal Bugnion -
Show More
@@ -461,7 +461,7 b' def classic_prompt():'
461 def ipy_prompt():
461 def ipy_prompt():
462 """Strip IPython's In [1]:/...: prompts."""
462 """Strip IPython's In [1]:/...: prompts."""
463 # FIXME: non-capturing version (?:...) usable?
463 # FIXME: non-capturing version (?:...) usable?
464 prompt_re = re.compile(r'^(In \[\d+\]: |\s*\.{3,}: )')
464 prompt_re = re.compile(r'^(In \[\d+\]: |\s*\.{3,}: ?)')
465 return _strip_prompts(prompt_re)
465 return _strip_prompts(prompt_re)
466
466
467
467
@@ -233,6 +233,11 b' syntax_ml = \\'
233 ('...: print i',' print i'),
233 ('...: print i',' print i'),
234 ('...: ', ''),
234 ('...: ', ''),
235 ],
235 ],
236 [('In [24]: for i in range(10):','for i in range(10):'),
237 # Space after last continuation prompt has been removed (issue #6674)
238 ('...: print i',' print i'),
239 ('...:', ''),
240 ],
236 [('In [2]: a="""','a="""'),
241 [('In [2]: a="""','a="""'),
237 (' ...: 123"""','123"""'),
242 (' ...: 123"""','123"""'),
238 ],
243 ],
General Comments 0
You need to be logged in to leave comments. Login now