diff --git a/@section/write.m b/@section/write.m index 7a9808e8af438d7de860faba3774a2fff36ae2d1..f4107352d414f7bf3e976b13ead08ebe7a8f19d4 100644 --- a/@section/write.m +++ b/@section/write.m @@ -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