Mercurial > hg > octave-lojdl
changeset 9263:9eb6e8f2b937
scripts/help/__makeinfo__.m: Support several @seealso's in one text.
author | Soren Hauberg <hauberg@gmail.com> |
---|---|
date | Tue, 26 May 2009 18:14:23 +0200 |
parents | 75c502937d2c |
children | be7d8132c139 |
files | scripts/ChangeLog scripts/help/__makeinfo__.m |
diffstat | 2 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2009-05-26 Søren Hauberg <hauberg@gmail.com> + + * help/__makeinfo__.m: Support several @seealso's in one text. + 2009-05-26 Carlo de Falco <kingcrimson@tiscali.it> * pkg/pkg.m: Add "version" field to the structure returned by "pkg
--- a/scripts/help/__makeinfo__.m +++ b/scripts/help/__makeinfo__.m @@ -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;