diff options
Diffstat (limited to 'render/layout.c')
-rw-r--r-- | render/layout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/render/layout.c b/render/layout.c index b3b625e7f..e6974c047 100644 --- a/render/layout.c +++ b/render/layout.c @@ -880,7 +880,7 @@ void calculate_inline_container_widths(struct box *box) word = space + 1, space = strchr(word, ' ')) { width = font_width(child->font, word, - (unsigned int) (space - word)); + (unsigned int) (space - word - 1)); if (min < width) min = width; } width = font_width(child->font, word, strlen(word)); |