4 words instead of 3 after the chord...

Leonardo Robol [2009-04-12 09:21]
4 words instead of 3 after the chord...
Filename
latex_manager.py
diff --git a/latex_manager.py b/latex_manager.py
index 089adff..5ccdc02 100644
--- a/latex_manager.py
+++ b/latex_manager.py
@@ -33,11 +33,11 @@ class latex_manager():

         # Transform chords in LaTeX Chords
         latex_song = re.sub("\[", "\\Ch{", latex_song)
-        latex_song = re.sub("\](\w|\s)(\w|\s)(\w|\s)", self.quadra_to_chord_end, latex_song)
+        latex_song = re.sub("\](\w|\s)(\w|\s)(\w|\s)(\w|\s)", self.quadra_to_chord_end, latex_song)
         latex_song = re.sub("\]", "}{}", latex_song)

         return latex_song

     def quadra_to_chord_end(self,m):
-        st = "}{" + m.group(1) + m.group(2) + m.group(3) + "}"
+        st = "}{" + m.group(1) + m.group(2) + m.group(3) + m.group(4) + "}"
         return st
ViewGit