ipython/ipython — pull request #1206 by minrk (2011-12-24 19:04:10+00:00)
Title: don't preserve fixConsole output in json

move `utils.fixConsole` calls closer to display, so they don't clobber the actual data stored in the notebook.

also store nonexistent input_prompt_number as `null`, rather than ` `, which is what should be drawn, not the actual value.

We need to be careful with this one, because currently we do write HTML-escaped text to the notebook (see #1205), so this will change the output. So if you open a notebook written by 0.12, plaintext output will be double-escaped until you run it again. The *fixed* output seems to display correctly in the old/bad code.

Let's not merge until we check if there's an easy way to avoid escaping to HTML a second time.

fixes #1205