From d576878bf3e5d396c9b2959d6e8dd4f1dc3c0b90 Mon Sep 17 00:00:00 2001 From: fredrik Date: Sat, 28 Oct 2006 23:14:25 +0000 Subject: [PATCH] Pretty-print info files. git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@722 959494ce-11ee-0310-bf91-de5d638817bd --- lib/guile/autodl | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/lib/guile/autodl b/lib/guile/autodl index 6b72550..62ccbf7 100755 --- a/lib/guile/autodl +++ b/lib/guile/autodl @@ -209,16 +209,15 @@ (define (write-info-file) (if (assoc 'info-file session) (let ((op (open-output-file (cdr (assoc 'info-file session))))) - (write (list (cons 'numdl (length trans)) - (cons 'lastdl lastdl) - (cons 'availsr info-numavail) - (cons 'realsr info-numreal) - (cons 'totalsr info-numtotal) - (cons 'lastsrch lastsearch) - (cons 'srcheta info-searcheta) - (cons 'srchmode (cdr (assoc 'search-mode session)))) - op) - (newline op) + (pretty-print (list (cons 'numdl (length trans)) + (cons 'lastdl lastdl) + (cons 'availsr info-numavail) + (cons 'realsr info-numreal) + (cons 'totalsr info-numtotal) + (cons 'lastsrch lastsearch) + (cons 'srcheta info-searcheta) + (cons 'srchmode (cdr (assoc 'search-mode session)))) + op) (close-port op)))) (define (parseresults) -- 2.11.0