Browse Source

Add property to return key with utf8 alterations

pull/98/head
Oliverpool 9 years ago
parent
commit
585b343bc9
  1. 5
      patacrep/songs/chordpro/ast.py

5
patacrep/songs/chordpro/ast.py

@ -341,6 +341,11 @@ class Define(Directive):
self.fingers = fingers # Can be None
super().__init__("define", None)
@property
def pretty_key(self):
"""Return the key with nicer (utf8) alteration"""
return self.key.chord.replace('&', '').replace('#', '')
def __str__(self):
return None

Loading…
Cancel
Save