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: https://git.distorted.org.uk/~mdw/profile/commitdiff_plain/fea6c2f1c1adc4caf68af64ad50f9c4682a98614?ds=sidebyside;hp=51dd0821437237c80bb0910b459799c0f66b71b0 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"; }