diff options
author | Andy Wingo <wingo@pobox.com> | 2011-01-25 17:59:45 +0100 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2011-01-25 17:59:45 +0100 |
commit | c32f0d6b87b8a7ec024b3d6d54c9b03e9dfd73a4 (patch) | |
tree | 442e953dca0bc2bd4bc9a02cd3e6b5c2afa04e8f /module/texinfo | |
parent | 667230810b2ef95b6e8ee0b33ff1cdb61cc3ca21 (diff) | |
download | guile-c32f0d6b87b8a7ec024b3d6d54c9b03e9dfd73a4.tar.gz |
stexi->shtml supports itemx
* module/texinfo/html.scm (entry, rules): Allow @itemx,
Diffstat (limited to 'module/texinfo')
-rw-r--r-- | module/texinfo/html.scm | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/module/texinfo/html.scm b/module/texinfo/html.scm index 1e37fdc5b..81dd1f123 100644 --- a/module/texinfo/html.scm +++ b/module/texinfo/html.scm @@ -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) |