Otherwise, there are unnecessary spaces at the end of lines in tables containing
combining characters.

Signed-off-by: Fabienne Ducroquet <fabi...@gmail.com>
---
 src/document/html/renderer.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/document/html/renderer.c b/src/document/html/renderer.c
index 00971f7..b7b358b 100644
--- a/src/document/html/renderer.c
+++ b/src/document/html/renderer.c
@@ -651,7 +651,12 @@ good_char:
                                unicode_val_T data;
 
                                data = utf8_to_unicode(&chars, end);
+#ifdef CONFIG_COMBINE
+                               if (data == UCS_SOFT_HYPHEN
+                                   || (data != UCS_NO_CHAR && 
wcwidth((wchar_t)data) == 0))
+#else
                                if (data == UCS_SOFT_HYPHEN)
+#endif
                                        continue;
 
                                if (data == UCS_NO_BREAK_SPACE
-- 
2.8.0.rc3

-- 
http://lists.linuxfromscratch.org/listinfo/elinks-dev
Unsubscribe: See the above information page

Reply via email to