From 0c6f7dd8cd8cabc45d4deb529b0ab5c2102f132a Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Tue, 14 May 2013 12:27:46 +0200 Subject: [PATCH] reporting: change hlines to showHlines --- matlab/reports/@table/display.m | 4 ++-- matlab/reports/@table/table.m | 4 ++-- matlab/reports/@table/write.m | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/matlab/reports/@table/display.m b/matlab/reports/@table/display.m index 315098f52..33ce40b8e 100644 --- a/matlab/reports/@table/display.m +++ b/matlab/reports/@table/display.m @@ -40,9 +40,9 @@ disp(' '); disp([' ''' o.footnote '''']); disp(' '); -disp([name '.hlines = ']); +disp([name '.showHlines = ']); disp(' '); -disp(o.hlines); +disp(o.showHlines); disp(' '); disp([name '.showVlines = ']); diff --git a/matlab/reports/@table/table.m b/matlab/reports/@table/table.m index b90d33728..f24a75c88 100644 --- a/matlab/reports/@table/table.m +++ b/matlab/reports/@table/table.m @@ -38,7 +38,7 @@ o.titleSize = 'large'; o.footnote = ''; o.config = ''; -o.hlines = false; +o.showHlines = false; o.showVlines = false; o.vlineAfter = ''; @@ -78,7 +78,7 @@ end assert(ischar(o.title), '@table.table: title must be a string'); assert(ischar(o.footnote), '@table.table: footnote must be a string'); assert(ischar(o.config), '@table.table: config file must be a string'); -assert(islogical(o.hlines), '@table.table: hlines must be true or false'); +assert(islogical(o.showHlines), '@table.table: showHlines must be true or false'); assert(islogical(o.showVlines), '@table.table: showVlines must be true or false'); assert(isint(o.precision), '@table.table: precision must be an int'); assert(isempty(o.range) || (isa(o.range, 'dynDates') && o.range.ndat >= 2), ... diff --git a/matlab/reports/@table/write.m b/matlab/reports/@table/write.m index 704832456..e203e20f2 100644 --- a/matlab/reports/@table/write.m +++ b/matlab/reports/@table/write.m @@ -125,7 +125,7 @@ fprintf(fid, '%%\n'); ne = o.seriesElements.numElements(); for i=1:ne o.seriesElements(i).write(fid, dates, o.precision); - if o.hlines + if o.showHlines fprintf(fid, '\\hline\n'); end end