<div dir="ltr"><div><div><div><div>I'm working on existing documentation with heavy indexing.  The way that <span style="font-family:monospace,monospace"><indexterm></span> is coded will very often lead to unwanted whitespace (blank lines).<br><br></div>I've read a lot about how to correctly index with Docbook/Publican, but I'm still unable to find an acceptable solution.<br><br></div>Existing XML, which typically looks like this, will show up with an additional blank line between the section header and the included diagram.<br><br>~~~~<br><span style="font-family:monospace,monospace"><section id="mthXxxx"><title>method</title><br><indexterm><primary>method</primary><br><secondary>of Class</secondary></indexterm><br><indexterm><primary>method</primary><br><secondary>method</secondary><br><tertiary>of Class</tertiary></indexterm><br><br><mediaobject><br><imageobject><br><imagedata fileref=".." /><br></imageobject><br></mediaobject><br><br><para>Returns ..</span><br>~~~~<br><br></div>Moving the <span style="font-family:monospace,monospace"><indexterm></span> into the <span style="font-family:monospace,monospace"><title></span> (as shown below) will remove the blank line, but any <xref> links to this id will show up with a glaring trailing blank, even if I carefully orchestrate <span style="font-family:monospace,monospace"><indexterm></span> and <span style="font-family:monospace,monospace"><indexterm></span>.<br>~~~~<br><span style="font-family:monospace,monospace"><section id="mthXxxx"><title>method<indexterm><br><primary>method</primary><br><secondary>of Class</secondary><br></indexterm><indexterm><br><primary>method</primary><br><secondary>method</secondary><br><tertiary>of Class</tertiary><br></indexterm></title><br></span></div><span style="font-family:monospace,monospace"></span><div>~~~~<br><br></div><div>Moving the <span style="font-family:monospace,monospace"><indexterm></span> into the following paragraph isn't a nice option either, as any <span style="font-family:monospace,monospace"><xref></span> links should really point to the heading, not (depending on the diagram size) maybe much further down.<br><br></div><div>As I'm having the same issue with indexed examples without titles, where I cannot see <i>any </i>possibility to move the <span style="font-family:monospace,monospace"><indexterm></span> to, I'm wondering if Publican could be instructed to simply ignore whitespace that gets introduced with <span style="font-family:monospace,monospace"><indexterm></span></div></div>