diff options
author | Jorge Arellano Cid <jcid@dillo.org> | 2010-02-16 11:54:18 -0300 |
---|---|---|
committer | Jorge Arellano Cid <jcid@dillo.org> | 2010-02-16 11:54:18 -0300 |
commit | d9f18c3af927a5c69fd94fe5640eaac5c8e2574e (patch) | |
tree | 9cdde824b3b8b02002097dd53a4025023afdd0d0 /src/html.cc | |
parent | c41381ed695b3553b0454adcffca0d6a0e5520e9 (diff) | |
parent | ceb4a77cb81853fb7e7ca6f3c10f8e625f585496 (diff) |
merge
Diffstat (limited to 'src/html.cc')
-rw-r--r-- | src/html.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/html.cc b/src/html.cc index cf3e54d8..21cfe2c4 100644 --- a/src/html.cc +++ b/src/html.cc @@ -1178,6 +1178,8 @@ static void Html_process_word(DilloHtml *html, const char *word, int size) if (isspace(word2[i])) { while (word2[++i] && isspace(word2[i])) ; Html_process_space(html, word2 + start, i - start); + } else if (!strncmp(word2+i, utf8_zero_width_space, 3)) { + i += 3; } else if (a_Utf8_ideographic(word2+i, word2_end, &len)) { i += len; HT2TB(html)->addText(word2 + start, i - start, @@ -1186,6 +1188,7 @@ static void Html_process_word(DilloHtml *html, const char *word, int size) do { i += len; } while (word2[i] && !isspace(word2[i]) && + strncmp(word2+i, utf8_zero_width_space, 3) && (!a_Utf8_ideographic(word2+i, word2_end, &len))); HT2TB(html)->addText(word2 + start, i - start, html->styleEngine->wordStyle ()); |