public inbox for docbook-tools-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Ricardo <ricardo@conectiva.com.br>
To: docbook-tools-discuss@sourceware.cygnus.com, ndw@nwalsh.com
Subject: bug in docbook LOT
Date: Fri, 02 Mar 2001 06:10:00 -0000	[thread overview]
Message-ID: <3A9FA886.6FAB90A8@conectiva.com.br> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1802 bytes --]

This Function, causes a bug. The <figure> inside a list
(orderedlist,variablelist...) doesn't appears in List of Figures.

In dbautoc.dsl

(define (build-lot nd lotgi #!optional (first? #t))
  (let* ((lotlist (node-list-filter-by-gi (children nd)
                      (append (division-element-list)
                          (component-element-list)
                          (section-element-list)
                          (block-element-list)
                          (list-element-list)
                          (list (normalize "para"))))))
    (if (node-list-empty? lotlist)
    (empty-sosofo)
    (make sequence
      (lot-title first? lotgi)
      (let loop ((nl lotlist))
        (if (node-list-empty? nl)
        (empty-sosofo)
        (make sequence
          (if (string=? (gi (node-list-first nl)) lotgi)
              ($lot-entry$ (node-list-first nl))
              (empty-sosofo))
          (build-lot (node-list-first nl) lotgi #f)
          (loop (node-list-rest nl)))))))))


Using this, fix the bug

(define (build-lot nd lotgi #!optional (first? #t))
  (let* ((lotlist (select-elements (descendants nd) (normalize lotgi))))
  (if (node-list-empty? lotlist)
   (empty-sosofo)
   (make sequence
    (lot-title first? lotgi)
    (let loop ((nl lotlist))
     (if (node-list-empty? nl)
      (empty-sosofo)
      (make sequence
       (if (string=? (gi (node-list-first nl)) lotgi)
        ($lot-entry$ (node-list-first nl))
        (empty-sosofo))
       (build-lot (node-list-first nl) lotgi #f)
       (loop (node-list-rest nl)))))))))


hugs
-- 
Ricardo Soares Guimarães (GNOME - Brazil / KDE Brazil)
LDP-BR - LIE-BR
ricardo@conectiva.com.br +55 041-360-2682 uin: 39252777

	As esplendidas fortunas - como os ventos impetuosos - 
	provocam grandes naufragios.
		-- Plutarco

                 reply	other threads:[~2001-03-02  6:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3A9FA886.6FAB90A8@conectiva.com.br \
    --to=ricardo@conectiva.com.br \
    --cc=docbook-tools-discuss@sourceware.cygnus.com \
    --cc=ndw@nwalsh.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).