chiark / gitweb /
firefox/explode-stylus: Suppress a final blank line in output sections.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 19 Jun 2020 09:16:18 +0000 (10:16 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 19 Jun 2020 09:17:38 +0000 (10:17 +0100)
firefox/explode-stylus

index 6195a3af9e8ce3ee22ff41d3e4f0a1b6f178b069..1b20b83992938b0ac825c6d5c17effe5b63a8101 100755 (executable)
@@ -18,6 +18,7 @@ for my $e (@$js) {
       next KEY if $k eq "code";
       print $fh "/*@ $k: ", join(", ", $s->{$k}->@*), " */\n";
     }
+    $s->{code} =~ s/\n$//;
     print $fh $s->{code}, "\n";
     print $fh "/*\@END*/\n";
   }