Currently working on compiling an index for an EPUB book, I have structured entries with subentries as shown below:
coal
anthracite
bituminous coal
brown coal
imports
reserves
seams
[next main index entry]
The issue lies in the excess space before the first subentry and after the last subentry. To illustrate, it appears like this:
coal
anthracite
bituminous coal
brown coal
imports
reserves
seams
[next main index entry]
Below is the accompanying code snippet:
<body class="rear-matter" id="rear-matter">
<div class="rear-matter">
<h1 class="title" id="index">
<a href="contents.xhtml">Index</a></h1>
<li epub:type="index-entry">
<span epub:type="index-term">coal</span>
<ul epub:type="index-entry-list">
<li epub:type="index-entry">
<span epub:type="index-term"><a href="chapter_1169115.xhtml#anthracite" id="coal_reserves">anthracite</a></span>
</li>
<li epub:type="index-entry">
<span epub:type="index-term"><a href="chapter_1174195.xhtml#bituminous coal" id="bituminous_coal">bituminous coal</a></span>
</li>
<li epub:type="index-entry">
<span epub:type="index-term"><a href="chapter_1174195.xhtml#brown coal" id="brown_coal">brown coal</a></span>
</li>
<li epub:type="index-entry">
<span epub:type="index-term"><a href="chapter_1174195.xhtml#coal imports" id="coal_imports">imports</a></span>
</li>
<li epub:type="index-entry">
<span epub:type="index-term"><a href="chapter_1169115.xhtml#coal reserves" id="coal_reserves">reserves</a></span>
</li>
<li epub:type="index-entry">
<span epub:type="index-term"><a href="chapter_1169115.xhtml" id="coal_seams">seams</a></span>
</li>
</ul>
</li>
I suspect the spacing issue originates from the tag <ul epub:type="index-entry-list">, but I am unsure how to rectify it. Is there a way to minimize the space before the first subentry and after the last one?
Many thanks, Tom