Mercurial > hg > octave-nkf
changeset 19529:1213af866a89 stable
doc: Fix backslash not showing in error/warning docs due to escape processing.
* error.cc (Ferror, Fwarning): Remove @qcode macro around "\\n" in order for
it to be processed correctly. Change "new line" to "newline".
author | Rik <rik@octave.org> |
---|---|
date | Wed, 19 Nov 2014 10:43:55 -0800 |
parents | a791930c3bda |
children | 88847d5d1a96 |
files | libinterp/corefcn/error.cc |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/error.cc +++ b/libinterp/corefcn/error.cc @@ -1029,7 +1029,7 @@ control will return to the top level without evaluating any more\n\ commands. This is useful for aborting from functions or scripts.\n\ \n\ -If the error message does not end with a new line character, Octave will\n\ +If the error message does not end with a newline character, Octave will\n\ print a traceback of all the function calls leading to the error. For\n\ example, given the following function definitions:\n\ \n\ @@ -1057,10 +1057,10 @@ @end group\n\ @end example\n\ \n\ -If the error message ends in a new line character, Octave will print the\n\ +If the error message ends in a newline character, Octave will print the\n\ message but will not display any traceback messages as it returns\n\ control to the top level. For example, modifying the error message\n\ -in the previous example to end in a new line causes Octave to only print\n\ +in the previous example to end in a newline causes Octave to only print\n\ a single message:\n\ \n\ @example\n\ @@ -1093,7 +1093,7 @@ which will only stop execution if an error has been found.\n\ \n\ Implementation Note: For compatibility with @sc{matlab}, escape\n\ -sequences (e.g., @qcode{\"\\n\"} => newline) are processed in @var{template}\n\ +sequences (e.g., \"\\n\" => newline) are processed in @var{template}\n\ regardless of whether @var{template} has been defined within single quotes\n\ as long as there are two or more input arguments.\n\ Use a second backslash to stop interpolation of the escape sequence (e.g.,\n\ @@ -1265,7 +1265,7 @@ workspace.\n\ \n\ Implementation Note: For compatibility with @sc{matlab}, escape\n\ -sequences (e.g., @qcode{\"\\n\"} => newline) are processed in @var{template}\n\ +sequences (e.g., \"\\n\" => newline) are processed in @var{template}\n\ regardless of whether @var{template} has been defined within single quotes\n\ as long as there are two or more input arguments.\n\ Use a second backslash to stop interpolation of the escape sequence (e.g.,\n\