]> git.donarmstrong.com Git - lilypond.git/commitdiff
Regtest script: Allow to customize the length of shortened strings.
authorJulien Rioux <jrioux@physics.utoronto.ca>
Sat, 17 Dec 2011 12:49:02 +0000 (07:49 -0500)
committerGraham Percival <graham@percival-music.ca>
Mon, 26 Dec 2011 18:17:05 +0000 (10:17 -0800)
scripts/build/output-distance.py

index 941f879f478accc3a71ab92dc3a739fd13c5d47e..647d7bd7af07bad6888d97a1a58b61771dba258a 100755 (executable)
@@ -53,8 +53,7 @@ def system (c):
         raise Exception ("failed")
     return
 
-def shorten_string (s):
-    threshold = 15
+def shorten_string (s, threshold = 15):
     if len (s) > 2*threshold:
         s = s[:threshold] + '..' + s[-threshold:]
     return s