Handling raw numbers in sxml format.

This commit is contained in:
Alex Shinn 2013-06-04 06:14:46 +09:00
parent b4dc6f994b
commit 3704289138

View file

@ -52,10 +52,11 @@
(apply string-append (reverse (cons ">" res))) (apply string-append (reverse (cons ">" res)))
(lp (cdr ls) (cons (html-attr->string (car ls)) (cons " " res)))))) (lp (cdr ls) (cons (html-attr->string (car ls)) (cons " " res))))))
(define (html-display-escaped-string str . o) (define (html-display-escaped-string x . o)
(let ((start 0) (let* ((str (display-to-string x))
(end (string-length str)) (start 0)
(out (if (pair? o) (car o) (current-output-port)))) (end (string-length str))
(out (if (pair? o) (car o) (current-output-port))))
(let lp ((from start) (to start)) (let lp ((from start) (to start))
(if (>= to end) (if (>= to end)
(display (substring str from to) out) (display (substring str from to) out)