Re: Sneaky white space
- To: mathgroup at smc.vnet.net
- Subject: [mg113394] Re: Sneaky white space
- From: John Fultz <jfultz at wolfram.com>
- Date: Wed, 27 Oct 2010 05:14:32 -0400 (EDT)
On Tue, 26 Oct 2010 05:35:41 -0400 (EDT), Sam Takoy wrote:
> Hi,
>
> I'm working nicely along, when all of a sudden Mathematica tells me that
> essentially it can't NIntegrate[Cos[a], {a, -Pi, Pi}]. After 30 minutes
> of searching, I discover that I have an invisible TextCell[""] attached
> to the expression.
>
> First of all, I don't know what I did to put it there. What DID I do?
> Some inadvertent Ctrl-Key combination?
>
> Second, TextCell[""] is mostly invisible and hard to find. Is there a
> way to make it visible or to find it more easily?
>
> Many thanks in advance,
>
>
> Sam
It's hard to offer any definitive comments without knowing more about what
happened, but I'll offer a bit of speculation.
Possibly you may have accidentally pressed Ctrl+9 at some point while editing
the input? Or maybe this got snagged as part of some copy/paste operation. Did
you maybe copy the template from the help viewer? Or copy output from some
other input you had involving TextCell?
A TextCell which is truly empty ought to disappear on its own unless it was
created by evaluating TextCell[]. It also wouldn't go away if it had spaces in
it.
Sincerely,
John Fultz
jfultz at wolfram.com
User Interface Group
Wolfram Research, Inc.