From 86f42a747abcea0689117e15c04b887a61c072b4 2011-04-10 17:55:47
From: Thomas Kluyver <takowl@gmail.com>
Date: 2011-04-10 17:55:47
Subject: [PATCH] Tweak empty cell test.

---

diff --git a/IPython/core/interactiveshell.py b/IPython/core/interactiveshell.py
index b85e73a..ccbda3c 100644
--- a/IPython/core/interactiveshell.py
+++ b/IPython/core/interactiveshell.py
@@ -2118,7 +2118,7 @@ class InteractiveShell(Configurable, Magic):
           history. For user code calling back into IPython's machinery, this
           should be set to False.
         """
-        if not raw_cell.strip():
+        if (not raw_cell) or raw_cell.isspace():
             return
         
         for line in raw_cell.splitlines():