Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fo: missing space after vertical simplelist #31

Closed
petere opened this issue Mar 31, 2017 · 1 comment
Closed

fo: missing space after vertical simplelist #31

petere opened this issue Mar 31, 2017 · 1 comment

Comments

@petere
Copy link
Contributor

petere commented Mar 31, 2017

Consider this example document:

<?xml version="1.0"?>
<!DOCTYPE para PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
<section>
  <title>foo</title>
  <para>
    text before
    <simplelist>
      <member>one</member>
      <member>two</member>
      <member>three</member>
    </simplelist>
    text after
  </para>
</section>

Process it using

xsltproc -o test.fo .../docbook-xsl/fo/docbook.xsl test.xml

The output for the simplelist results in a <fo:table> with space-before attributes but no space-after attributes, so there is vertical space between "text before" and the list/table, but not vertical space between the list/table and the "text after".

I think the resposible attribute set normal.para.spacing should also get some space-after attributes.

@bobstayton
Copy link
Contributor

Adding space-after attributes to 'normal.para.spacing' could produce undesirable results for some users. The space between two blocks is taken as the maximum of a) the preceding block's space-after and b) the following block's space-before. If the preceding block is an ordinary para and has a space after, then the element that follows it cannot reduce the spacing below that amount with its space-before. The DocBook stylesheets took the design approach to let every element specify its space-before, since that is generally more important design-wise than space-after. Because normal.para.spacing is used in so many places, your case of a simple list within a para should not be used to override this general design principle.
I think a better solution would be to provide a specific attribute set for simplelist in vertical mode, so that you could add a space-after value for your purposes without messing with all the para spacing in the document.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants