Mercurial > octave
changeset 26222:52a595c996bc
Fix warning about '.' in @ref nodes (bug #55209).
* munge-texi.pl: Replace '.' with '_' in node names used for crossreferences.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 13 Dec 2018 09:21:53 -0800 |
parents | 76ac35f71573 |
children | db43bd1fc038 |
files | doc/interpreter/munge-texi.pl |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/interpreter/munge-texi.pl Thu Dec 13 16:11:50 2018 +0100 +++ b/doc/interpreter/munge-texi.pl Thu Dec 13 09:21:53 2018 -0800 @@ -84,6 +84,7 @@ } $func =~ s/^@/@@/; # Texinfo uses @@ to produce '@' + $func =~ s/\./_/g; # Texinfo doesn't like '.' in node names $docstring =~ s/^$tex_delim$/\@anchor{XREF$func}/m; print $docstring,"\n"; @@ -133,7 +134,9 @@ foreach $func (split (/,/, $func_list)) { $func =~ s/^@/@@/; # Texinfo uses @@ to produce '@' - $repl .= "\@ref{XREF$func,,$func}, "; + $node = $func; + $node =~ s/\./_/g; # Texinfo doesn't like '.' in node names + $repl .= "\@ref{XREF$node,,$func}, "; } substr($repl,-2) = ""; # Remove last ', ' $_ = "\@seealso{$repl}$rest_of_line";