(lambda (p)
(sxml->xml
(scrubl-write-obj scrubl obj)
- ;; (list 'pre (scrubl-write-obj scrubl obj))
p))))
(scrubl-write-obj scrubl arg))
args))))
+(define (scrubl-pre scrubl args)
+ `(span (@ (class "pre-ish"))
+ ,args))
+
(define scrubl-sxml
(make-scrubl `((p . ,(scrubl-sxml-simple-field 'p))
(strong . ,(scrubl-sxml-simple-field 'strong))
(b . ,(scrubl-sxml-simple-field 'strong))
(em . ,(scrubl-sxml-simple-field 'em))
(i . ,(scrubl-sxml-simple-field 'em))
- (br . ,(scrubl-sxml-simple-field 'br)) ;; is this useful?
+ (br . ,(scrubl-sxml-simple-field 'br))
+ (pre . ,scrubl-pre) ;; "pre" style whitespace handling.
(ul . ,(scrubl-sxml-simple-field 'ul))
(li . ,(scrubl-sxml-simple-field 'li)))
scrubl-sxml-write))