This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: qandaentry: HTML output


/ Michael Wiedmann <michael.wiedmann@detewe.de> was heard to say:
| For HTML-Output I want to separate the next question a bit more from the
| last answer. Since there may be more than one <para> in an answer, this
| extra space should only be added for the last <para>.

How do you want to add the space? A couple of BRs?

Something like this should work:

(element (answer para)
  (make sequence
    (make element gi: "P"
      (process-children))
    (if (last-sibling? (current-node))
      (make empty-element gi: "BR"))))

Overlooking any typos I made.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com>      | The shoe that fits one person
http://www.oasis-open.org/docbook/ | pinches another; there is no
Chair, DocBook Technical Committee | recipe for living that suits all
                                   | cases.--Jung

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]