If in a Texinfo input file I have

@cindex --wuh
@findex --wuh

in the DocBook output, this becomes

<indexterm role="cp"><primary>&#8211;wuh</primary></indexterm>
<indexterm role="fn"><primary>&#8211;wuh</primary></indexterm>

We see that the index test is identical. However, in the source code
in DocBook.pm, the '_index_entry' function, there's the following
line:

    $self->{'document_context'}->[-1]->{'monospace'}->[-1] = 1
       if ($index_entry->{'in_code'});

The 'in_code' value in fact is not (never?) set, so this doesn't make
a difference. (It should be set in
Texinfo::Structuring::_do_index_keys.) However, if it is set, then the
output looks like

<indexterm role="fn"><primary>--wuh</primary></indexterm>

Is this output correct, or should it be something else instead?

Reply via email to