}
/*
- * Copy curret cell data to buffer. The @cal means "calculation" phase.
+ * Copy current cell data to buffer. The @cal means "calculation" phase.
*/
int __cursor_to_buffer(struct libscols_table *tb,
struct ul_buffer *buf,
data = scols_cell_get_data(ce);
datasiz = scols_cell_get_datasiz(ce);
}
+ DBG(CELL, ul_debugobj(cl, "cursor data: '%s' [%zu]", data, datasiz));
}
if (!scols_column_is_tree(cl))
if (!rc && data && datasiz)
rc = ul_buffer_append_data(buf, data, datasiz);
+ /* reset wrapping after greatest chunk calculation */
+ if (cal && scols_column_is_wrap(cl))
+ scols_column_reset_wrap(cl);
return rc;
}
rc = print_pending_data(tb, buf);
if (!rc && scols_column_has_pending_wrap(cl))
pending = 1;
+ if (!rc && !pending)
+ scols_column_reset_wrap(cl);
} else
print_empty_cell(tb, cl, ln, NULL, ul_buffer_get_bufsiz(buf));
scols_table_reset_cursor(tb);