From e8756c7c46e7de9232fc523b16cf376c7cf6b4ff Mon Sep 17 00:00:00 2001 From: Ben Wiley Sittler Date: Mon, 3 Nov 2008 17:18:04 +0000 Subject: [PATCH] do not split a fullwidth character in the middle. yes, in some degenerate cases this will lead to incorrectly-displayed tables. i don't yet have a solution. --- caca/codec/export.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/caca/codec/export.c b/caca/codec/export.c index 08a8ed3..790846a 100644 --- a/caca/codec/export.c +++ b/caca/codec/export.c @@ -531,6 +531,8 @@ static void *export_html3(caca_canvas_t const *cv, size_t *bytes) : has_multi_cell_row)) || + (linechar[x + len] == CACA_MAGIC_FULLWIDTH) + || (cv->height == 1)) && (caca_attr_to_ansi_bg(lineattr[x + len])