]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
(main): With --hash, output a newline after
authorNiels Möller <nisse@lysator.liu.se>
Tue, 6 Sep 2005 12:10:53 +0000 (14:10 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Tue, 6 Sep 2005 12:10:53 +0000 (14:10 +0200)
each hash.

Rev: src/nettle/tools/sexp-conv.c:1.18

tools/sexp-conv.c

index d4b152b673028488d1fabf45b992deafc1dc6ef8..99646031db87616c94b2b3e3d35b6d99dd4b5df5 100644 (file)
@@ -362,7 +362,10 @@ main(int argc, char **argv)
     {
       sexp_convert_item(&parser, &token, &output, options.mode, 0);
       if (options.hash)
-       sexp_put_digest(&output);
+       {
+         sexp_put_digest(&output);
+         sexp_put_newline(&output, 0);
+       }
       else if (options.mode != SEXP_CANONICAL)
        sexp_put_newline(&output, 0);