mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-15 08:57:33 +02:00
Handling raw numbers in sxml format.
This commit is contained in:
parent
b4dc6f994b
commit
3704289138
1 changed files with 5 additions and 4 deletions
|
@ -52,10 +52,11 @@
|
|||
(apply string-append (reverse (cons ">" res)))
|
||||
(lp (cdr ls) (cons (html-attr->string (car ls)) (cons " " res))))))
|
||||
|
||||
(define (html-display-escaped-string str . o)
|
||||
(let ((start 0)
|
||||
(end (string-length str))
|
||||
(out (if (pair? o) (car o) (current-output-port))))
|
||||
(define (html-display-escaped-string x . o)
|
||||
(let* ((str (display-to-string x))
|
||||
(start 0)
|
||||
(end (string-length str))
|
||||
(out (if (pair? o) (car o) (current-output-port))))
|
||||
(let lp ((from start) (to start))
|
||||
(if (>= to end)
|
||||
(display (substring str from to) out)
|
||||
|
|
Loading…
Add table
Reference in a new issue