# HG changeset patch # User jwe # Date 941520808 0 # Node ID 69136e3883bfcf73f572df756caba868ad05dd57 # Parent e84e324db1defa4517eb2ff05f46a7359761236d [project @ 1999-11-02 05:33:27 by jwe] diff --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +1999-11-01 John W. Eaton + + * defun.cc (print_usage): Use display_help_text instead of sending + help message directly to octave_stdout. + 1999-10-29 John W. Eaton * defun-dld.h (INSTALL_DLD_FCNS, INSTALL_DLD_FCN): Delete definitions. diff --git a/src/defun.cc b/src/defun.cc --- a/src/defun.cc +++ b/src/defun.cc @@ -51,8 +51,11 @@ if (h.length () > 0) { - octave_stdout << "\n*** " << nm << ":\n\n" - << h << "\n"; + octave_stdout << "\n*** " << nm << ":\n\n"; + + display_help_text (octave_stdout, h); + + octave_stdout << "\n"; if (! just_usage) additional_help_message (octave_stdout); diff --git a/src/help.cc b/src/help.cc --- a/src/help.cc +++ b/src/help.cc @@ -679,7 +679,7 @@ return (p2 != NPOS); } -static void +void display_help_text (ostream& os, const string& msg) { // Look for "-*- texinfo -*-" in first line of help message. If it diff --git a/src/help.h b/src/help.h --- a/src/help.h +++ b/src/help.h @@ -31,6 +31,8 @@ extern string_vector make_name_list (void); +extern void display_help_text (ostream&, const string&); + extern void additional_help_message (ostream&); // Name of the info file specified on command line.