[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: LYNX-DEV submit field glitch
From: |
Laura Eaves |
Subject: |
Re: LYNX-DEV submit field glitch |
Date: |
Mon, 28 Apr 1997 16:48:04 -0400 (EDT) |
> Date: Mon, 28 Apr 1997 12:54:43 -0500 (CDT)
> From: Klaus Weide <address@hidden>
>...
> Hynek sent this to me instead of the list. I think it is a problem with
> Laura's patch for submit fields, and also appears with the fotemods code.
>
> To reproduce it, you may have to set your screen width to something around
> 80.
If someone else hasn't fixed it already, the fix was just to
put an unbreakable space for each space in the submit value.
Here's the patch.
I tried it and it seems to fix the problem.
--le
*** old/HTML.c Sun Apr 27 23:04:15 1997
--- src/HTML.c Mon Apr 28 16:32:10 1997
***************
*** 4015,4021 ****
/* chars should == length(I.value); see above --LE */
/* but let's be paranoid.. - kw */
for ( i = 0; i < chars && I.value[i] != '\0'; ++i )
! HTML_put_character(me, I.value[i]);
for (; i < chars; ++i)
HTML_put_character(me, '_');
}
--- 4015,4024 ----
/* chars should == length(I.value); see above --LE */
/* but let's be paranoid.. - kw */
for ( i = 0; i < chars && I.value[i] != '\0'; ++i )
! if ( I.value[i] == ' ' )
! HTML_put_character(me,HT_NON_BREAK_SPACE);
! else
! HTML_put_character(me, I.value[i]);
for (; i < chars; ++i)
HTML_put_character(me, '_');
}
;
; To UNSUBSCRIBE: Send a mail message to address@hidden
; with "unsubscribe lynx-dev" (without the
; quotation marks) on a line by itself.
;