This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Odd formatting of lists
- To: Norman Walsh <ndw at nwalsh dot com>
- Subject: Re: DOCBOOK-APPS: Odd formatting of lists
- From: Peter Eisentraut <peter_e at gmx dot net>
- Date: Fri, 05 Oct 2001 23:13:18 +0200 (CEST)
- Cc: docbook-apps at lists dot oasis-open dot org
- List-Id: <docbook-apps.lists.oasis-open.org>
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>