- for (i = 0; i<rows;i++){
- for (j = 0;j<columns;j++){
- fprintf(file, "%d %d %d %d %d %d %d \"%s\" \"%s\"\n",
- cell_info[i][j].multicolumn,
- cell_info[i][j].alignment,
- cell_info[i][j].top_line,
- cell_info[i][j].bottom_line,
- cell_info[i][j].has_cont_row,
- cell_info[i][j].rotate,
- cell_info[i][j].linebreaks,
- cell_info[i][j].align_special.c_str(),
- cell_info[i][j].p_width.c_str());
+ for (i = 0; i < rows; ++i) {
+ for (j = 0; j < columns; ++j) {
+ os << cell_info[i][j].multicolumn << " "
+ << cell_info[i][j].alignment << " "
+ << cell_info[i][j].top_line << " "
+ << cell_info[i][j].bottom_line << " "
+ << cell_info[i][j].has_cont_row << " "
+ << cell_info[i][j].rotate << " "
+ << cell_info[i][j].linebreaks << " \""
+ << cell_info[i][j].align_special << "\" \""
+ << cell_info[i][j].p_width << "\"\n";