--- misc/plot-bamstats.orig	2019-07-09 15:05:11.870849355 +0200
+++ misc/plot-bamstats	2019-07-09 15:05:33.511871839 +0200
@@ -787,7 +787,7 @@
         for (my $iqual=1; $iqual<@$cycle; $iqual++) { print $fh "\t$$cycle[$iqual]"; }
         print $fh "\n";
     }
-    print $fh "end\nend\n";
+    print $fh "\nend\n";
     if ( $is_paired )
     {
         @ytics = ();
@@ -812,7 +812,7 @@
             for (my $iqual=1; $iqual<@$cycle; $iqual++) { print $fh "\t$$cycle[$iqual]"; }
             print $fh "\n";
         }
-        print $fh "end\nend\n";
+        print $fh "\nend\n";
     }
     close($fh);
     plot($$args{gp});
