From 85e1e0dee5f5d2e1d448cdfef6c9b6e88309d336 Mon Sep 17 00:00:00 2001 From: Romain Goffe Date: Fri, 15 Jun 2012 01:05:44 +0200 Subject: [PATCH] add url + prevent rules.py from modifying the url --- utils/rules.py | 2 ++ 1 file changed, 2 insertions(+) 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 (