Skip to content

Commit

Permalink
Add __repr__ to style.
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaswiman committed Feb 12, 2017
1 parent 159c701 commit a24a294
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions railroad_diagrams.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ def __init__(self, css):
self.width = 0
self.needsSpace = False

def __repr__(self):
return 'Style(%r)' % css

def format(self, x, y, width):
return self

Expand Down

0 comments on commit a24a294

Please sign in to comment.