summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xMaster/texmf-dist/scripts/texlive/tlmgr.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/Master/texmf-dist/scripts/texlive/tlmgr.pl b/Master/texmf-dist/scripts/texlive/tlmgr.pl
index 831ae58ecb6..a9c1a7b0782 100755
--- a/Master/texmf-dist/scripts/texlive/tlmgr.pl
+++ b/Master/texmf-dist/scripts/texlive/tlmgr.pl
@@ -1491,7 +1491,7 @@ Goodbye.
if ($opts{'data'}) {
@adds = @datafields;
}
- print "[\n" if ($fmt eq "json");
+ print "[" if ($fmt eq "json");
my $first = 1;
foreach my $ppp (@whattolist) {
next if ($ppp =~ m/^00texlive\./);
@@ -3638,7 +3638,7 @@ sub show_one_package_json {
my $is_available = (defined($remtlp) ? 1 : 0);
if (!($is_installed || $is_available)) {
# output proper JSON for unavailable packages
- print "{ \"name\":\"$p\", \"available\":false }\n";
+ print "{ \"name\":\"$p\", \"available\":false }";
#tlwarn("$prg: package $p not found neither locally nor remote!\n");
#return($F_WARNING);
return($F_OK);
@@ -3652,7 +3652,7 @@ sub show_one_package_json {
lrev => ($is_installed ? $loctlp->revision : 0),
rrev => ($is_available ? $remtlp->revision : 0),
revision => undef);
- print $str, "\n";
+ print $str;
return($F_OK);
}