Mercurial > hg > octave-thorsten
changeset 5300:643a4d5b2b88
[project @ 2005-04-22 16:27:46 by jwe]
author | jwe |
---|---|
date | Fri, 22 Apr 2005 16:27:46 +0000 |
parents | db290db95b33 |
children | 9302581b820d |
files | src/ChangeLog src/DLD-FUNCTIONS/dispatch.cc |
diffstat | 2 files changed, 11 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,11 @@ +2005-04-22 John W. Eaton <jwe@octave.org> + + * DLD-FUNCTIONS/dispatch.cc (Fdispatch): Dispatch help on "string" + and "sq_string" types. + (dispatch_record): Add extra space to force new paragraph after + each dispatched function name if we are formatting with Texinfo. + Force noindent of preceding "Overloaded function:" tag. + 2005-04-21 John W Eaton <jwe@octave.org> * ls-mat5.cc (read_mat5_binary_element): Only read sparse matrix
--- a/src/DLD-FUNCTIONS/dispatch.cc +++ b/src/DLD-FUNCTIONS/dispatch.cc @@ -435,7 +435,7 @@ // std::cout << "iscommand('"<<f<<"')=" << iscommand << std::endl; if (iscommand) sr->mark_as_command(); - sr->document (basedoc + "\n\nOverloaded function\n"); + sr->document (basedoc + "\n\n@noindent\nOverloaded function:\n"); sr->make_eternal (); // XXX FIXME XXX why?? sr->mark_as_static (); sr->protect (); @@ -466,7 +466,7 @@ xrep.add (t, n); if (! sr->help().empty ()) - sr->document (sr->help() + "\n " + n + "(" + t + ",...)"); + sr->document (sr->help() + "\n" + n + " (" + t + ", ...)\n"); } } @@ -520,6 +520,7 @@ register_type = false; fbi_sym_tab->lookup("dispatch")->mark_as_static (); dispatch_record ("help", "dispatch_help", "string"); + dispatch_record ("help", "dispatch_help", "sq_string"); } dispatch_record (f, n, t);