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: Odd formatting of lists


Norman Walsh writes:

> |     This term is really uninteresting but I need to make this text long
> [...]
> | What annoys me slightly is the extra space before the first line of the
> | first paragraph ("This...").
> [...]
> | Any ideas?
>
> All whitespace is significant in mixed content.

That would explain it.

However, this behaviour is only seen within lists; ordinary

<para>
 content
</para>

formats "correctly" without leading spaces.  Why?  Many people and tools
indent their SGML sources.  Is this wrong?

Btw., I seem to be getting better results with this patch:

--- dblists.dsl.orig    Thu Sep 13 22:35:16 2001
+++ dblists.dsl Fri Oct  5 22:20:41 2001
@@ -105,7 +105,7 @@
 (define (process-listitem-content)
   (if (absolute-first-sibling?)
       (make sequence
-       (process-node-list (children (current-node))))
+       (process-children-trim))
       (next-match)))

 (mode listitem-content-mode

This would presume that:

a) (process-node-list (children (current-node))) is sufficiently
   equivalent to (process-children).  I don't know.

b) There isn't someone who actually wants the spaces.

Comments?

-- 
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter


----------------------------------------------------------------
To subscribe or unsubscribe from this elist use the subscription
manager: <http://lists.oasis-open.org/ob/adm.pl>


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