From 8d8664ea351ef52e2bfc6e2784b18a05618912e3 2010-01-01 06:22:55 From: Fernando Perez Date: 2010-01-01 06:22:55 Subject: [PATCH] Fix broken multiline input - ugly fix, needs cleanup later. See comment in code, my fix is nasty and should be cleaned up later, but right now I can't do it (no time to understand the component tree machinery well enough for a clean fix). --- diff --git a/IPython/core/prefilter.py b/IPython/core/prefilter.py index ddc32ee..b6fdba2 100755 --- a/IPython/core/prefilter.py +++ b/IPython/core/prefilter.py @@ -850,7 +850,11 @@ class AutoHandler(PrefilterHandler): # This should only be active for single-line input! if continue_prompt: - self.log(line,line,continue_prompt) + # XXX - Ugly hack! We are breaking on multiline input and I'm out + # of time tonight to disentangle the component hirerarchy issue + # here... Fix this more cleanly later. + self.parent.parent.log(line,line,continue_prompt) + return line force_auto = isinstance(obj, IPyAutocall)