aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/html.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/html.cc b/src/html.cc
index 0007ea9f..c59a9ddd 100644
--- a/src/html.cc
+++ b/src/html.cc
@@ -1149,7 +1149,8 @@ static void Html_process_word(DilloHtml *html, const char *word, int size)
while (Pword[++i] && !isspace(Pword[i])) ;
ch = Pword[i];
Pword[i] = 0;
- DW2TB(html->dw)->addText(Pword, html->styleEngine->wordStyle ());
+ DW2TB(html->dw)->addText(Pword + start,
+ html->styleEngine->wordStyle ());
Pword[i] = ch;
html->pre_column += i - start;
html->PreFirstChar = false;