Since r6711, puzzles built with Gtk 1.2 would take double actions when a menu
[sgt/puzzles] / mkfiles.pl
index b93e4fa..9ab5223 100755 (executable)
@@ -325,7 +325,8 @@ sub splitline {
   $splitchar = (defined $splitchar ? $splitchar : '\\');
   while (length $line > $len) {
     $line =~ /^(.{0,$len})\s(.*)$/ or $line =~ /^(.{$len,}?\s(.*)$/;
-    $result .= $1 . " ${splitchar}\n\t\t";
+    $result .= $1;
+    $result .= " ${splitchar}\n\t\t" if $2 ne '';
     $line = $2;
     $len = 60;
   }