diff --git a/caca/codec/export.c b/caca/codec/export.c index aaa3096..f525c31 100644 --- a/caca/codec/export.c +++ b/caca/codec/export.c @@ -526,7 +526,7 @@ static void *export_html3(caca_canvas_t const *cv, size_t *bytes) /* Use colspan option to factor cells with same attributes * (see below) */ len = 1; - while((y || ! has_multi_cell_row) + while((y || (! has_multi_cell_row) || (cv->height == 1)) && (x + len < cv->width) &&