mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-09 14:07:34 +02:00
Simplifying mime-message->sxml by relying on defaults.
This commit is contained in:
parent
e0db95d3de
commit
7153c04c70
1 changed files with 2 additions and 8 deletions
|
@ -330,7 +330,7 @@
|
|||
(lambda (x) (next (kons parent-headers headers x seed)))
|
||||
(lambda (x) (final (kons parent-headers headers x seed)))))))))))
|
||||
|
||||
;;> \subsubsubsection{\scheme{(mime-message->sxml [src])}}
|
||||
;;> \subsubsubsection{\scheme{(mime-message->sxml [src [headers]])}}
|
||||
;;>
|
||||
;;> Parse the given source as a MIME message and return
|
||||
;;> the result as an SXML object of the form:
|
||||
|
@ -346,10 +346,4 @@
|
|||
(if (and (equal? body "") (null? headers))
|
||||
seed
|
||||
`((mime (@ ,@headers) ,body) ,@seed)))
|
||||
'()
|
||||
(lambda (headers seed) '())
|
||||
(lambda (headers parent-seed seed)
|
||||
`((mime (@ ,@headers)
|
||||
,@(if (pair? seed) (reverse seed) seed))
|
||||
,@parent-seed))
|
||||
(if (pair? o) (cdr o) '()))))
|
||||
'() #f #f (if (pair? o) (cdr o) '()))))
|
||||
|
|
Loading…
Add table
Reference in a new issue