package w3m tag patch -- A simple patch, which makes w3m more standard conformant by replacing '\n' by spaces instead of ignoring them.
Karsten Schölzel
Replace '\n' (newline) with ' ' (space) in attributes of html tags instead of ignoring them. Fixes Debian bug #326167: w3m: new lines in hidden form fields are stripped --- commit 53b5078aa061ec1a2aabbadb6677bc55ac7c84f1 tree 2c0666c3ea2796a826261b8d8eaa1d1952d8a1dd parent 8e147ad22d2fbd068a7889947b5346aa7c41e8a6 author Karsten Schoelzel <[EMAIL PROTECTED](none)> Sat, 05 Nov 2005 18:03:10 +0100 committer Karsten Schoelzel <[EMAIL PROTECTED](none)> Sat, 05 Nov 2005 18:03:10 +0100 parsetagx.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/parsetagx.c b/parsetagx.c --- a/parsetagx.c +++ b/parsetagx.c @@ -182,6 +182,8 @@ parse_tag(char **s, int internal) while (*q && *q != '"') { if (*q != '\n') Strcat_char(value, *q); + else + Strcat_char(value, ' '); if (!tag->need_reconstruct && is_html_quote(*q)) tag->need_reconstruct = TRUE; q++; @@ -194,6 +196,8 @@ parse_tag(char **s, int internal) while (*q && *q != '\'') { if (*q != '\n') Strcat_char(value, *q); + else + Strcat_char(value, ' '); if (!tag->need_reconstruct && is_html_quote(*q)) tag->need_reconstruct = TRUE; q++;