Mercurial > hg > octave-nkf
diff scripts/miscellaneous/edit.m @ 17245:7babcdb9bc13
Use ... instead of \ for line continuation marker.
* plotimages.m, bsxfun.cc, cellfun.cc, __unimplemented__.m,
importdata.m, textscan.m, edit.m, fsolve.m, sqp.m,
__gnuplot_drawnow__.m, __marching_cube__.m, stemleaf.m, polyfit.m,
z_test.m, z_test_2.m, test.m:
Use ... instead of \ for line continuation marker.
author | Stefan Mahr <dac922@gmx.de> |
---|---|
date | Mon, 12 Aug 2013 17:36:54 +0200 |
parents | c3c1ebfaa7dc |
children | bc924baa2c4e |
line wrap: on
line diff
--- a/scripts/miscellaneous/edit.m +++ b/scripts/miscellaneous/edit.m @@ -468,11 +468,11 @@ else code = " "; endif - body = ["#include <octave/oct.h>\n\n", \ - "DEFUN_DLD(" name ", args, nargout, \"\\\n", \ - name, "\\n\\\n\")\n{\n", \ - " octave_value_list retval;\n", \ - " int nargin = args.length ();\n\n", \ + body = ["#include <octave/oct.h>\n\n", ... + "DEFUN_DLD(" name ", args, nargout, \"\\\n", ... + name, "\\n\\\n\")\n{\n", ... + " octave_value_list retval;\n", ... + " int nargin = args.length ();\n\n", ... code, "\n return retval;\n}\n"]; text = [comment, body]; @@ -484,15 +484,15 @@ body = ["function [retval] = " name " ()\n\nendfunction\n"]; endif if (isempty (head)) - comment = ["## -*- texinfo -*- \n## @deftypefn {Function File} " \ - "{@var{retval} =} " name " (@var{x}, @var{y})\n##\n" \ - "## @seealso{}\n## @end deftypefn\n\n" \ + comment = ["## -*- texinfo -*- \n## @deftypefn {Function File} " ... + "{@var{retval} =} " name " (@var{x}, @var{y})\n##\n" ... + "## @seealso{}\n## @end deftypefn\n\n" ... "## " strrep(tail, "\n", "\n## ") "\n\n"]; else - comment = ["## " strrep(head,"\n","\n## ") "\n\n" \ - "## -*- texinfo -*- \n## @deftypefn {Function File} " \ - "{@var{retval} =} " name " (@var{x} @var{y})\n##\n" \ - "## @seealso{}\n## @end deftypefn\n\n" \ + comment = ["## " strrep(head,"\n","\n## ") "\n\n" ... + "## -*- texinfo -*- \n## @deftypefn {Function File} " ... + "{@var{retval} =} " name " (@var{x} @var{y})\n##\n" ... + "## @seealso{}\n## @end deftypefn\n\n" ... "## " strrep(tail, "\n", "\n## ") "\n\n"]; endif text = [comment, body];