mirror of
https://gitlab.com/parroquia-san-leandro/cancionero-web.git
synced 2024-12-22 00:33:33 +01:00
removed brackets from lyrics
This commit is contained in:
parent
5e3ca2ad3a
commit
fe04c18430
1 changed files with 4 additions and 0 deletions
|
@ -98,6 +98,7 @@ class Line:
|
|||
self.chord_arr = []
|
||||
self.lyric_arr = []
|
||||
self.build()
|
||||
self.remove_brackets()
|
||||
|
||||
def __str__(self):
|
||||
assert len(self.chord_arr) == len(self.lyric_arr)
|
||||
|
@ -174,6 +175,9 @@ class Line:
|
|||
for i in range(len(self.lyric_arr)):
|
||||
self.lyric_arr[i] = re.sub(r"(^ | $)", " ", self.lyric_arr[i])
|
||||
|
||||
def remove_brackets(self):
|
||||
self.lyric_arr = [l.replace('}', '').replace('{', '') for l in self.lyric_arr]
|
||||
|
||||
def chorded(self):
|
||||
for key in self.extras:
|
||||
for i in self.extras[key]:
|
||||
|
|
Loading…
Reference in a new issue