Skip to content
Snippets Groups Projects
Commit 1709f872 authored by Sander Mathijs van Veen's avatar Sander Mathijs van Veen
Browse files

Avoid an empty line when there are no possibilities to print.

parent ffb9e906
No related branches found
No related tags found
No related merge requests found
......@@ -219,7 +219,8 @@ class Parser(BisonParser):
print pick_suggestion(self.last_possibilities)
def display_possibilities(self):
print '\n'.join(map(str, self.last_possibilities))
if self.last_possibilities:
print '\n'.join(map(str, self.last_possibilities))
def rewrite(self):
suggestion = pick_suggestion(self.last_possibilities)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment