From 40c0687bf9aac25689039d38ec0efb81e1102128 2013-08-10 01:52:20
From: Matthew Brett <matthew.brett@gmail.com>
Date: 2013-08-10 01:52:20
Subject: [PATCH] BF: fix nbconert rst input prompt spacing

I believe this fixes gh-3980

---

diff --git a/IPython/nbconvert/templates/rst.tpl b/IPython/nbconvert/templates/rst.tpl
index 6f22d12..463a0e8 100644
--- a/IPython/nbconvert/templates/rst.tpl
+++ b/IPython/nbconvert/templates/rst.tpl
@@ -1,9 +1,12 @@
 {%- extends 'display_priority.tpl' -%}
 
 
-{% block in_prompt -%}
+{% block in_prompt %}
+
 In[{{ cell.prompt_number if cell.prompt_number else ' ' }}]:
+
 .. code:: python
+
 {% endblock in_prompt %}
 
 {% block output_prompt %}
@@ -73,4 +76,4 @@ In[{{ cell.prompt_number if cell.prompt_number else ' ' }}]:
 
 {% block unknowncell scoped %}
 unknown type  {{cell.type}}
-{% endblock unknowncell %}
\ No newline at end of file
+{% endblock unknowncell %}