When I trace a bunch of code (in this case, some raw XML being
returned in an AJAX request) to the console via console.log(), it
displays nicely in the console, meaning that all the line returns and
tabs from the actual XML output are there.

But -- when I copy this from the console and paste it into any text
editor, all the formatting (line returns and tabs) disappears, making
my nicely-formatted output into one compressed mess.

Is there any way around this?

Here's an example to illustrate what I'm talking about, though I'm
using square brackets instead of angled (don't want my tags to be
replaced!) and I'll use dots to represent spaces, since I can't count
on my formatting being retained in this message post.

So this lovely xml, which looks just like this is Firebug's console:

[market]
....[mkt]sfo[/mkt]
....[name]San Francisco[/name]
[/market]

... becomes this the moment I copy and paste it somewhere:

[market] [mkt]sfo[/mkt] [name]San Francisco[/name] [/market]

Any suggestions most welcome!

-- 
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/firebug?hl=en.

Reply via email to