Fixed textarea wordwrap if first character on line is a space
svn path=/trunk/netsurf/; revision=2941
This commit is contained in:
parent
271c28a5df
commit
f2cd31779b
|
@ -1279,7 +1279,12 @@ bool layout_line(struct box *first, int *width, int *y,
|
|||
split_box->type == BOX_TEXT) &&
|
||||
!split_box->object &&
|
||||
!split_box->gadget && split_box->text) {
|
||||
/* skip leading spaces, otherwise code gets fooled into thinking it's all one long word */
|
||||
for (i = 0; i != split_box->length &&
|
||||
split_box->text[i] == ' '; i++)
|
||||
;
|
||||
/* find end of word */
|
||||
for (; i != split_box->length &&
|
||||
split_box->text[i] != ' '; i++)
|
||||
;
|
||||
if (i != split_box->length)
|
||||
|
|
Loading…
Reference in New Issue