Skip to content

Commit

Permalink
Handle empty variables in python
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Sustrik <[email protected]>
  • Loading branch information
sustrik committed Oct 28, 2016
1 parent ef346e6 commit a30ff8d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ribosome.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ def trim(self):
# empty block
self.text = ['']
self.width = 0
return
# Strip off the top and bottom whitespace.
self.text = self.text[top:bottom+1]
# Strip off the whitespace on the left and on the right.
Expand Down

0 comments on commit a30ff8d

Please sign in to comment.