A combining character sequence where the base character is a space remained
recorded as a space although the initial space was replaced with an internal
code corresponding to the combined character. This caused an internal error when
ELinks tried to split the line at that place and did not find the space.

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 e566ea5..00971f7 100644
--- a/src/document/html/renderer.c
+++ b/src/document/html/renderer.c
@@ -571,6 +571,11 @@ good_char:
                                                        
assert_comb_x_y_ok(document);
                                                        if_assert_failed prev = 
UCS_NO_CHAR;
 
+                                                       /* Make sure the 
combined character is not considered as
+                                                        * a space. */
+                                                       if (x)
+                                                               part->spaces[x 
- 1] = 0;
+
                                                        if (prev != UCS_NO_CHAR)
                                                                
document->data[document->comb_y]
                                                                        
.chars[document->comb_x].data = prev;
-- 
2.8.0.rc3

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

Reply via email to