From 02ca95e811d3609e428b8daa09c970df9726c850 Mon Sep 17 00:00:00 2001
From: Houtan Bastani <houtan@dynare.org>
Date: Tue, 14 May 2013 12:27:46 +0200
Subject: [PATCH] reporting: change hlines to showHlines

---
 matlab/reporting/@table/display.m | 4 ++--
 matlab/reporting/@table/table.m   | 4 ++--
 matlab/reporting/@table/write.m   | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/matlab/reporting/@table/display.m b/matlab/reporting/@table/display.m
index 315098f52d..33ce40b8e9 100644
--- a/matlab/reporting/@table/display.m
+++ b/matlab/reporting/@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/reporting/@table/table.m b/matlab/reporting/@table/table.m
index b90d33728f..f24a75c888 100644
--- a/matlab/reporting/@table/table.m
+++ b/matlab/reporting/@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/reporting/@table/write.m b/matlab/reporting/@table/write.m
index 7048324561..e203e20f2d 100644
--- a/matlab/reporting/@table/write.m
+++ b/matlab/reporting/@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
-- 
GitLab