From 0faec7c5d6c55f3451dc4087112718ce1d34a807 2014-03-26 00:43:34 From: MinRK Date: 2014-03-26 00:43:34 Subject: [PATCH] fix check for empty cells in rst template used isspace before, which is wrong from empty strings --- diff --git a/IPython/nbconvert/templates/rst.tpl b/IPython/nbconvert/templates/rst.tpl index fdabe2a..1dc7f69 100644 --- a/IPython/nbconvert/templates/rst.tpl +++ b/IPython/nbconvert/templates/rst.tpl @@ -8,7 +8,7 @@ {% endblock output_prompt %} {% block input %} -{%- if not cell.input.isspace() -%} +{%- if cell.input.strip() -%} .. code:: python {{ cell.input | indent}}