if (row_info[i].caption && !endfirsthead.empty && !haveLTFirstHead())
// if no first header and no empty first header is used,
// the caption needs to be terminated by \endfirsthead
if (row_info[i].caption && !endfirsthead.empty && !haveLTFirstHead())
// if no first header and no empty first header is used,
// the caption needs to be terminated by \endfirsthead
os << "\\endfirsthead";
else
os << "\\tabularnewline";
os << "\\endfirsthead";
else
os << "\\tabularnewline";