@ref in @multitable broken in Info output if split across lines

2014-12-03 Thread Gavin Smith
If makeinfo produces a cross-reference in a table in the Info output
and the text for the cross-reference is split across lines, then it is
not possible to follow the cross-reference. For example:

Chunk nameFirst definition point
--
Check for more than  See *note Check-for-more-than-one-initial::.
one initial
Set up 'fields' arraySee *note
with the dataSet-up--code-fields--array-with-the-data::.
Store the data for the   See *note
line in the 'Data'
Store-the-data-for-the-line-in-the--code-Data--array::.
array

Here is a multitable with three lines with cross-references in the
second column. The cross-reference in the first line is followable,
but in lines 2 and 3 they are not. The cross-reference text for the
second row should be *note
Set-up--code-fields--array-with-the-data::, but it gets the text from
the first column as well, leading the Info viewer to look for a node
called with the data
Set-up--code-fields--array-with-the-data.

This could be fixed if makeinfo always put the text for a
cross-reference on a single line in a multitable, although that would
break the column widths sometimes.

Test files are attached.


xref-in-multitable.info
Description: Binary data


xref-in-multitable.texi
Description: TeXInfo document


Re: Effect of newline in macro definition

2014-12-03 Thread Karl Berry
However, I tried it without the @c and didn't get a paragraph break. A
test Texinfo file and the Info output file are attached.

Well, that item was in the list of caveats about texinfo.tex, not
makeinfo.  However, I just tried it again, and the current texinfo.tex
does indeed seem to strip the final newline from a macro definition, so
there's no paragraph break there any more.  Which seems desirable.  I
don't remember when that happened.  I guess I'll adjust the manual.
Thanks.

k