Skip to content

Commit

Permalink
Merge from 3.x: PR #4006
Browse files Browse the repository at this point in the history
Fixes #3992
  • Loading branch information
ccordoba12 committed Feb 10, 2017
2 parents 113f173 + 847ea1a commit 1afd285
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spyder/widgets/sourcecode/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,8 @@ def get_cell_as_executable_code(self):
self.setTextCursor(cursor)
text = self.get_selection_as_executable_code()
self.__restore_selection(start_pos, end_pos)
if text is not None:
text = text.rstrip()
return text

def is_cell_separator(self, cursor=None, block=None):
Expand Down

0 comments on commit 1afd285

Please sign in to comment.