Scheduler: Implement PollTimerSource
[senf.git] / doclib / dot-munge.pl
index dd0d8f9..263b44e 100755 (executable)
@@ -5,7 +5,7 @@ s/fontsize=10/fontsize=8/g;
 s/fontname="FreeSans.ttf"/fontname="Verdana"/g;
 
 # Wrap long labels (templates and pathnames)
-if (/label=\"([^"]*)\"/) {                                  #"])){ # To make emacs happy ...
+if (/label=\"([^"]{48,})\"/) {                              #"])){ # To make emacs happy ...
     $pre=$`; 
     $post=$';                                               #';    # To make emacs happy ...
     $label=$1;
@@ -20,15 +20,15 @@ if (/label=\"([^"]*)\"/) {                                  #"])){ # To make ema
 
     # If at least one break is in there ...
     if ($label=~/\\r/) {
-       # If it's a pathname, make all but the last line flush left
-       # Otherwise only make first line flush left
-       if ($label=~m{/}) {
-           $label=~s/\\r(\\ )*/\\ \\ \\ \\ \\ \\ \\ \\ \\l/g;
-           # Re-add blanks before last line
-           $label=~s/^.*\\l/$&\\ \\ \\ \\ \\ \\ \\ \\ /;
-       } else {
-           $label=~s/\\r/\\ \\ \\ \\ \\ \\ \\ \\ \\l/;
-       }
+    # If it's a pathname, make all but the last line flush left
+    # Otherwise only make first line flush left
+    if ($label=~m{/}) {
+        $label=~s/\\r(\\ )*/\\ \\ \\ \\ \\ \\ \\ \\ \\l/g;
+        # Re-add blanks before last line
+        $label=~s/^.*\\l/$&\\ \\ \\ \\ \\ \\ \\ \\ /;
+    } else {
+        $label=~s/\\r/\\ \\ \\ \\ \\ \\ \\ \\ \\l/;
+    }
         # Make last line flush right
         $label.="\\r";
     }