reporting: allow vspaces when section is not complete (implies that section is over)

time-shift
Houtan Bastani 2014-05-19 17:22:29 +02:00
parent 64e10aae10
commit c9a26263d4
1 changed files with 5 additions and 3 deletions

View File

@ -54,11 +54,13 @@ row = 1;
col = 1;
for i=1:ne
if isa(o.elements{i}, 'vspace')
assert(col == o.cols, ['@section.write: must place ' ...
'vspace command after a linebreak in the table ' ...
'or series of charts']);
o.elements{i}.write(fid);
fprintf(fid, '\\\\\n');
if col ~= o.cols
fprintf(fid, '\\end{tabular}}\\\\\n');
fprintf(fid, '%% End Section Object\n\n');
return;
end
else
o.elements{i}.write(fid, pg, sec, row, col);
if col ~= o.cols