Redirected stdout and stderr contains &nbsp characters

8 views
Skip to first unread message

aeromorrison

unread,
Mar 26, 2010, 11:37:36 AM3/26/10
to leo-editor
I am a newbie to leo and have been using it intermittently for 3-6
months. I do quite a bit of Python programming, and many of the
programs have significant amounts of output (typically the results of
calculations) printed during execution. I am struggling with how to
handle this within leo.

I have tried running leo from/with and open console (python vs.
pythonw), but this ends up being pretty inconvenient with the constant
switching back and forth and the limited capabilities of text copying,
etc. in the console. Recently, I found that you can redirect the
output to the Log pane using g.redirectStderr() and
g.redirectStdout(), but it seems that all of the output here displays
non-breaking space characters (&nbsp) everywhere there is supposed to
be a space. For example, it run print 'Hello World' and I get
Hello World in the Log pane. This is really hard to read when
you have 50 or 100 lines of numbers from the output of a program.

Is there any way to change this behavior or some other really obvious
approach that I am missing? Sorry if this is a basic question--I am
just getting to know leo.

Thanks

Edward K. Ream

unread,
Mar 26, 2010, 11:52:57 AM3/26/10
to leo-e...@googlegroups.com
On Fri, Mar 26, 2010 at 10:37 AM, aeromorrison
<adam.m...@sportplanedesign.com> wrote:

> Recently, I found that you can redirect the
> output to the Log pane using g.redirectStderr() and
> g.redirectStdout(), but it seems that all of the output here displays
> non-breaking space characters (&nbsp) everywhere there is supposed to
> be a space.

Thanks for this report. It looks like a bug to me. Could you please
file a bug report on Leo's bug tracker? Thanks.

Edward

aeromorrison

unread,
Mar 28, 2010, 2:31:27 PM3/28/10
to leo-editor
>
> Thanks for this report.  It looks like a bug to me.  Could you please
> file a bug report on Leo's bug tracker?  Thanks.
>
> Edward

OK. I filed a bug report on this.

Reply all
Reply to author
Forward
0 new messages