This needs checking, to see if it is consistent with the ipython example rendering. build examples and look at whether the extra whitespace changes anything. (I don't know the details well enough)