changeset 161:1d1439be0a55

default fix
author catherine@dellzilla
date Mon, 01 Dec 2008 16:26:28 -0500
parents 59b7847ec3ca
children c50615cf814f
files cmd2.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/cmd2.py	Mon Dec 01 13:43:35 2008 -0500
+++ b/cmd2.py	Mon Dec 01 16:26:28 2008 -0500
@@ -406,7 +406,7 @@
         self.inputParser.ignore(pyparsing.sglQuotedString).ignore(pyparsing.dblQuotedString).ignore(self.commentGrammars).ignore(self.commentInProgress)               
     
     def parsed(self, raw, useTerminatorFrom=None):
-        s = self.inputParser.transformString(raw)
+        s = self.inputParser.transformString(raw.strip())
         for (shortcut, expansion) in self.shortcuts.items():
             if s.startswith(shortcut):
                 s = s.replace(shortcut, expansion + ' ', 1)