Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nbconvert rst output lacks needed blank lines #3980

Closed
matthew-brett opened this issue Aug 10, 2013 · 1 comment · Fixed by #3981
Closed

nbconvert rst output lacks needed blank lines #3980

matthew-brett opened this issue Aug 10, 2013 · 1 comment · Fixed by #3981
Milestone

Comments

@matthew-brett
Copy link
Contributor

From current master (b5edafe):

ipython nbconvert --to=rst ~/dev_trees/ipython/examples/notebooks/Part\ 1\ -\ Running\ Code.ipynb 

Gives text like this:

Run a code cell using ``Shift-Enter`` or pressing the "Play" button in
the toolbar above:
In[10]:
.. code:: python

    a = 10
In[11]:
.. code:: python

    print(a)

The problem is the lack of line-breaks before and after the prompts; the following produces the output that I think you want:

In[10]:

.. code:: python

    a = 10

In[11]:

.. code:: python

    print(a)
@ivanov
Copy link
Member

ivanov commented Aug 10, 2013

matthew has a PR incoming that fixes this

@ivanov ivanov closed this as completed in 40c0687 Aug 10, 2013
ivanov pushed a commit that referenced this issue Aug 10, 2013
BF: fix nbconert rst input prompt spacing

I believe this fixes gh-3980

backported and pushed into 1.x branch by @ivanov
@minrk minrk added this to the 2.0 milestone Mar 26, 2014
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this issue Nov 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants