Mercurial > octave
diff scripts/general/num2str.m @ 21076:b433f9990452
strip trailing whitespace from files
* NEWS, oop.txi, ov.h, dSparse.h, f77-fcn.h, lo-array-gripes.h,
display.m, int2str.m, num2str.m, subsindex.m, fileattrib.m,
parser.tst: Strip trailing whitespace.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 15 Jan 2016 12:46:58 -0500 |
parents | b0afe1993268 |
children | a4faec57f4c8 |
line wrap: on
line diff
--- a/scripts/general/num2str.m Fri Jan 15 09:19:46 2016 -0800 +++ b/scripts/general/num2str.m Fri Jan 15 12:46:58 2016 -0500 @@ -176,7 +176,7 @@ idx{2} = perm; x = horzcat (real (x), imag (x)); x = x(idx{:}); - + fmt = [deblank(repmat(fmt, 1, nc * (nd - 1))), "\n"]; tmp = sprintf (fmt, permute (x, [2, 3:nd, 1]));