[prev in list] [next in list] [prev in thread] [next in thread]
List: elinks-dev
Subject: [elinks-dev] [PATCH 2/4] Compute correct number of cells with CONFIG_COMBINE
From: Fabienne Ducroquet <fabiduc () gmail ! com>
Date: 2016-04-12 19:02:36
Message-ID: 1460487758-11562-3-git-send-email-fabiduc () gmail ! com
[Download RAW message or body]
Otherwise, there are unnecessary spaces at the end of lines in tables containing
combining characters.
Signed-off-by: Fabienne Ducroquet <fabiduc@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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic