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


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

Re: [DSSSL Stylesheets] bugs and vertical spacing changes


Norman Walsh <ndw@nwalsh.com> writes:

> / Adam Di Carlo <adam@onshore.com> was heard to say:
> [...]
> | ;; hack
> | (element (itemizedlist listitem para)
> |   (if (first-sibling?)
> |       (make paragraph
> |         space-after: %para-sep%
> |         start-indent: (if (member (current-node) (outer-parent-list))
> |                           %body-start-indent%
> |                           (inherited-start-indent))
> |         (process-children-trim))
> |       ($paragraph$)))

> What purpose does this self-described hack serve? Dealing with
> listitem content is very irksome and I'm not anxious to make it
> even more complicated if it isn't necessary.

There is a phenomenal amount of vertical whitespace which occurs at
the head of itemizedlists.  My diagnosis was that the

  </para>
  <itemizedlist><listitem><para>

element nesting was causing all that extra vertical whitespace.

So what I'm doing here is just suppressing the space-before whitespace
for para items which occur in this context.

-- 
.....Adam Di Carlo....adam@onShore.com.....<URL:http://www.onShore.com/>


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