stexi->shtml supports itemx
authorAndy Wingo <wingo@pobox.com>
Tue, 25 Jan 2011 16:59:45 +0000 (17:59 +0100)
committerAndy Wingo <wingo@pobox.com>
Tue, 25 Jan 2011 16:59:45 +0000 (17:59 +0100)
* module/texinfo/html.scm (entry, rules): Allow @itemx,

module/texinfo/html.scm

index 1e37fdc..81dd1f1 100644 (file)
@@ -148,8 +148,14 @@ name, @code{#}, and the node name."
                (apply append body)))))
 
 (define (entry tag args . body)
-  `((dt ,@(arg-req 'heading args))
-    (dd ,@body)))
+  (let lp ((headings (list (arg-req 'heading args))) (body body))
+    (if (and (pair? body) (pair? (car body)) (eq? (caar body) 'itemx))
+        (lp (cons (cdar body) headings)
+            (cdr body))
+        `(,@(map (lambda (heading)
+                   `(dt ,@(map stexi->shtml heading)))
+                 headings)
+          (dd ,@(map stexi->shtml body))))))
 
 (define tag-replacements
   '((titlepage    div (@ (class "titlepage")))
@@ -230,7 +236,7 @@ name, @code{#}, and the node name."
     (node . ,node) (anchor . ,node)
     (table . ,table)
     (enumerate . ,enumerate)
-    (entry . ,entry)
+    (entry *preorder* . ,entry)
 
     (deftp . ,def) (defcv . ,def) (defivar . ,def) (deftypeivar . ,def)
     (defop . ,def) (deftypeop . ,def) (defmethod . ,def)