From 642a3d62f28fbffea4b68c66beeabeb9b8fba1c9 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 16 May 2005 00:55:43 +0000 Subject: [project @ 2005-05-16 00:55:43 by jmb] Fix issue with erroneously appending a space to the end of every line of textarea input - should we actually be examining box->space here, instead? svn path=/import/netsurf/; revision=1724 --- render/form.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/render/form.c b/render/form.c index ea7289934..aae98938a 100644 --- a/render/form.c +++ b/render/form.c @@ -457,8 +457,9 @@ char *form_textarea_value(struct form_control *textarea) if (text_box->type == BOX_INLINE) { strncpy(s, text_box->text, text_box->length); s += text_box->length; - if (text_box->next) - /* only add space if this isn't the last box */ + if (text_box->next && text_box->next->type != BOX_BR) + /* only add space if this isn't + * the last box on a line (or in the area) */ *s++ = ' '; } else { /* BOX_BR */ *s++ = '\r'; -- cgit v1.2.3