# HG changeset patch # User John W. Eaton # Date 1336664928 14400 # Node ID 88e67d58b06b1397c4894c091b2692080f7c06f0 # Parent 4e9dc46d412552df71f45bf38e612dbd817ed5a9 avoid makeinfo problem with backslash in macro argument * macros.texi (xbackslashchar): New macro. * data.cc (Fmldivide, Fldivide): Use it. diff --git a/doc/interpreter/macros.texi b/doc/interpreter/macros.texi --- 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 . +@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 diff --git a/src/data.cc b/src/data.cc --- 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") {