diff --git a/utils/rules.py b/utils/rules.py index ea84b8e8..97c6742d 100755 --- a/utils/rules.py +++ b/utils/rules.py @@ -168,6 +168,8 @@ def language_rules(string): string = re.sub("(?P\S)(?P[!?;:])","\g \g", string) #... except for gtabs macros with capos string = re.sub("(?Ptab.?{.*)\s:","\g:", string) + #... and for urls + string = re.sub("http\s:","http:", string) #and apply a second time for cases like \gtab{Gm}{10:X02210:} string = re.sub("(?Ptab.?{.*)\s:","\g:", string) #ensure no spaces after symbols (