fix ssax:warn to work as intended
authorAndy Wingo <wingo@pobox.com>
Wed, 30 Jan 2013 12:52:47 +0000 (13:52 +0100)
committerAndy Wingo <wingo@pobox.com>
Wed, 30 Jan 2013 12:52:47 +0000 (13:52 +0100)
* module/sxml/ssax.scm (ssax:warn): Fix to make more sense.

module/sxml/ssax.scm

index 474247b..cf94b71 100644 (file)
   (parameterize ((current-ssax-error-port port))
     (thunk)))
 
-(define (ssax:warn port msg . args)
-  (format (current-ssax-error-port)
-          ";;; SSAX warning: ~a ~a\n" msg args))
+(define (ssax:warn port . args)
+  (with-output-to-port (current-ssax-error-port)
+    (display ";;; SSAX warning: ")
+    (for-each display args)
+    (newline)))
 
 (define (ucscode->string codepoint)
   (string (integer->char codepoint)))