# HG changeset patch # User Soren Hauberg # Date 1243354463 -7200 # Node ID 9eb6e8f2b937a0ecda984b5cec9486809789095b # Parent 75c502937d2cd4a25e0d6e703ef23da664aed77b scripts/help/__makeinfo__.m: Support several @seealso's in one text. diff -r 75c502937d2c -r 9eb6e8f2b937 scripts/ChangeLog --- a/scripts/ChangeLog Tue Mar 17 20:36:01 2009 +0100 +++ b/scripts/ChangeLog Tue May 26 18:14:23 2009 +0200 @@ -1,3 +1,7 @@ +2009-05-26 Søren Hauberg + + * help/__makeinfo__.m: Support several @seealso's in one text. + 2009-05-26 Carlo de Falco * pkg/pkg.m: Add "version" field to the structure returned by "pkg diff -r 75c502937d2c -r 9eb6e8f2b937 scripts/help/__makeinfo__.m --- a/scripts/help/__makeinfo__.m Tue Mar 17 20:36:01 2009 +0100 +++ b/scripts/help/__makeinfo__.m Tue May 26 18:14:23 2009 +0200 @@ -89,8 +89,8 @@ ## Handle @seealso macro SEE_ALSO = "@seealso"; - start = strfind (text, SEE_ALSO); - if (!isempty (start)) + starts = strfind (text, SEE_ALSO); + for start = starts if (start == 1 || (text (start-1) != "@")) bracket_start = find (text (start:end) == "{", 1); stop = find (text (start:end) == "}", 1); @@ -111,7 +111,7 @@ expanded = see_also (see_also_args); text = strcat (text (1:start-1), expanded, text (stop+1:end)); endif - endif + endfor if (strcmpi (output_type, "texinfo")) status = 0;