summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2005-09-06 14:10:53 +0200
committerNiels Möller <nisse@lysator.liu.se>2005-09-06 14:10:53 +0200
commitc789e91dab505a27d3fe58938fd2dd954b55660e (patch)
treed00a7ecb29f48837a1a15d0a83d6de99ab75e10f /tools
parent14db59517830d861ac4c44fec850ec126950c286 (diff)
downloadnettle-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.c5
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);