Skip to content

Commit

Permalink
Merge pull request #13 from Roynecro97/patch-1
Browse files Browse the repository at this point in the history
Fix multiline tip in PException
  • Loading branch information
koreno authored Jan 3, 2021
2 parents fd0a04c + bf1c60a commit ae535f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion easypy/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def render(self, params=True, context=True, traceback=True, timestamp=True, colo
lines = tip.splitlines()
text += indent("GREEN(BLUE)@{tip = %s}@\n" % lines[0], " " * 4)
for line in lines[1:]:
text += indent("GREEN(BLUE)@{ %s}@\n" % lines[0], " " * 4)
text += indent("GREEN(BLUE)@{ %s}@\n" % line, " " * 4)
self._params['tip'] = tip # put it back in params, even though it might've been on the class

if timestamp and self.timestamp:
Expand Down

0 comments on commit ae535f0

Please sign in to comment.