Mercurial > hg > octave-nkf
changeset 20527:2ec049e50ed8 stable
doc: Fix backslash characters in docstrings
* utils.cc (Fisindex), beep.m: Use @xbackslashchar to produce backslashes in
docstrings consistently and be compatible with Texinfo 6.
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Thu, 09 Jul 2015 21:44:09 -0400 |
parents | 3300cb76cccd |
children | 45d7be391982 |
files | libinterp/corefcn/utils.cc scripts/io/beep.m |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/utils.cc +++ b/libinterp/corefcn/utils.cc @@ -1379,7 +1379,7 @@ \n\ Implementation Note: Strings are first converted to double values before the\n\ checks for valid indices are made. Unless a string contains the NULL\n\ -character @nospell{\"\\0\"}, it will always be a valid index.\n\ +character @nospell{\"@xbackslashchar{}0\"}, it will always be a valid index.\n\ @end deftypefn") { octave_value retval;
--- a/scripts/io/beep.m +++ b/scripts/io/beep.m @@ -20,9 +20,9 @@ ## @deftypefn {Function File} {} beep () ## Produce a beep from the speaker (or visual bell). ## -## This function sends the alarm character @qcode{"\a"} to the terminal. -## Depending on the user's configuration this may produce an audible beep, -## a visual bell, or nothing at all. +## This function sends the alarm character @qcode{"@xbackslashchar{}a"} to +## the terminal. Depending on the user's configuration this may produce an +## audible beep, a visual bell, or nothing at all. ## @seealso{puts, fputs, printf, fprintf} ## @end deftypefn