diff options
author | Niels Möller <nisse@lysator.liu.se> | 2005-09-06 14:10:53 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2005-09-06 14:10:53 +0200 |
commit | c789e91dab505a27d3fe58938fd2dd954b55660e (patch) | |
tree | d00a7ecb29f48837a1a15d0a83d6de99ab75e10f /tools | |
parent | 14db59517830d861ac4c44fec850ec126950c286 (diff) | |
download | nettle-c789e91dab505a27d3fe58938fd2dd954b55660e.tar.gz |
(main): With --hash, output a newline after
each hash.
Rev: src/nettle/tools/sexp-conv.c:1.18
Diffstat (limited to 'tools')
-rw-r--r-- | tools/sexp-conv.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/sexp-conv.c b/tools/sexp-conv.c index d4b152b6..99646031 100644 --- a/tools/sexp-conv.c +++ b/tools/sexp-conv.c @@ -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); |