Mercurial > hg > octave-terminal
changeset 14615:88e67d58b06b
avoid makeinfo problem with backslash in macro argument
* macros.texi (xbackslashchar): New macro.
* data.cc (Fmldivide, Fldivide): Use it.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 10 May 2012 11:48:48 -0400 |
parents | 4e9dc46d4125 |
children | 13cc11418393 |
files | doc/interpreter/macros.texi src/data.cc |
diffstat | 2 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/interpreter/macros.texi +++ b/doc/interpreter/macros.texi @@ -16,6 +16,13 @@ @c along with Octave; see the file COPYING. If not, see @c <http://www.gnu.org/licenses/>. +@c FIXME -- someday, we might replace this with @backslashchar, which +@c has been added to Texinfo. + +@macro xbackslashchar +\\ +@end macro + @c The following macro is used for the on-line help system, but we don't @c want lots of `See also: foo, bar, and baz' strings cluttering the @c printed manual (that information should be in the supporting text for
--- a/src/data.cc +++ b/src/data.cc @@ -5477,7 +5477,7 @@ "-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} mldivide (@var{x}, @var{y})\n\ Return the matrix left division of @var{x} and @var{y}.\n\ -This function and @w{@xcode{x \\ y}} are equivalent.\n\ +This function and @w{@xcode{x @xbackslashchar{} y}} are equivalent.\n\ @seealso{mrdivide, ldivide}\n\ @end deftypefn") { @@ -5594,7 +5594,7 @@ "-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} ldivide (@var{x}, @var{y})\n\ Return the element-by-element left division of @var{x} and @var{y}.\n\ -This function and @w{@xcode{x .\\ y}} are equivalent.\n\ +This function and @w{@xcode{x .@xbackslashchar{} y}} are equivalent.\n\ @seealso{rdivide, mldivide}\n\ @end deftypefn") {