toolbox

Check-in [ab0b7a818c]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:retab: remove unnecessary check
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: ab0b7a818cd229437012cff1e528035449514d9876c3c300461b3978f3e867b0
User & Date: jef 2020-05-01 14:28:45
Context
2020-05-02
08:48
retab: simplify max_widths() check-in: 2ff913e864 user: jef tags: trunk
2020-05-01
14:28
retab: remove unnecessary check check-in: ab0b7a818c user: jef tags: trunk
14:22
retab: improve table_widths() check-in: c4678b759f user: jef tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/retab/retab.c.

224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240

	rows = jtlst_new();
	while (read_line(&line)) {
		jtlst_append(rows, row_new(line));
		xfree(line);
	}

	if (jtlst_size(rows) == 0)
		return;

	widths = table_widths(rows);
	if (widths == NULL)
		die("abort, table without rows");

	JTLST_FOREACH(row, rows) {
		row_render(row, widths);
		row_free(row);







<
<
<







224
225
226
227
228
229
230



231
232
233
234
235
236
237

	rows = jtlst_new();
	while (read_line(&line)) {
		jtlst_append(rows, row_new(line));
		xfree(line);
	}




	widths = table_widths(rows);
	if (widths == NULL)
		die("abort, table without rows");

	JTLST_FOREACH(row, rows) {
		row_render(row, widths);
		row_free(row);