w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit 5c6f94a0f64f08e8189a8b65b4166590310fd525
parent ff70c10125353071d15116197b7bedc8ca55199e
Author: inu <inu>
Date:   Fri,  7 Apr 2006 15:38:42 +0000

Replace '\n' (newline) with ' ' (space) in attributes of html tags.

Diffstat:
MChangeLog | 6++++++
Mparsetagx.c | 4++++
2 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,6 +1,12 @@ 2006-04-07 Dai Sato <satodai@w3m.jp> * [w3m-dev-en 01060] Some patches + * parsetagx.c: 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 + +2006-04-07 Dai Sato <satodai@w3m.jp> + + * [w3m-dev-en 01060] Some patches * scripts/w3mman/w3mman*.in: Add w3mman -l <file> command line argument for viewing of local man files. * Fixes Debian bug #138805: w3mman -l doesn't work. diff --git 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++;