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 %}