From 88cfd5e4e26c768228e868b888633faa5282ceea Mon Sep 17 00:00:00 2001 From: dalthviz Date: Wed, 5 Jul 2017 20:39:19 -0500 Subject: [PATCH] Revert some changes for the commenting functionality. --- spyder/widgets/sourcecode/codeeditor.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spyder/widgets/sourcecode/codeeditor.py b/spyder/widgets/sourcecode/codeeditor.py index d3c319db9e8..add6ddcf8ce 100644 --- a/spyder/widgets/sourcecode/codeeditor.py +++ b/spyder/widgets/sourcecode/codeeditor.py @@ -2258,12 +2258,11 @@ def toggle_comment(self): def comment(self): """Comment current line or selection.""" - self.add_prefix(self.comment_string + " ") + self.add_prefix(self.comment_string) def uncomment(self): """Uncomment current line or selection.""" self.remove_prefix(self.comment_string) - self.remove_prefix(" ") def __blockcomment_bar(self): return self.comment_string + ' ' + '=' * (78 - len(self.comment_string))