From: Mark Wooding Date: Fri, 19 Jun 2020 09:16:18 +0000 (+0100) Subject: firefox/explode-stylus: Suppress a final blank line in output sections. X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/fea6c2f1c1adc4caf68af64ad50f9c4682a98614 firefox/explode-stylus: Suppress a final blank line in output sections. --- diff --git a/firefox/explode-stylus b/firefox/explode-stylus index 6195a3a..1b20b83 100755 --- a/firefox/explode-stylus +++ b/firefox/explode-stylus @@ -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"; }