Replace '\n' (newline) with ' ' (space) in attributes of html tags.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
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>
|
2006-04-07 Dai Sato <satodai@w3m.jp>
|
||||||
|
|
||||||
* [w3m-dev-en 01060] Some patches
|
* [w3m-dev-en 01060] Some patches
|
||||||
@@ -8671,4 +8677,4 @@ a * [w3m-dev 03276] compile error on EWS4800
|
|||||||
* release-0-2-1
|
* release-0-2-1
|
||||||
* import w3m-0.2.1
|
* import w3m-0.2.1
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.953 2006/04/07 14:59:02 inu Exp $
|
$Id: ChangeLog,v 1.954 2006/04/07 15:38:42 inu Exp $
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/* $Id: parsetagx.c,v 1.16 2006/04/07 13:21:12 inu Exp $ */
|
/* $Id: parsetagx.c,v 1.17 2006/04/07 15:38:42 inu Exp $ */
|
||||||
#include "fm.h"
|
#include "fm.h"
|
||||||
#include "myctype.h"
|
#include "myctype.h"
|
||||||
#include "indep.h"
|
#include "indep.h"
|
||||||
@@ -182,6 +182,8 @@ parse_tag(char **s, int internal)
|
|||||||
while (*q && *q != '"') {
|
while (*q && *q != '"') {
|
||||||
if (*q != '\n')
|
if (*q != '\n')
|
||||||
Strcat_char(value, *q);
|
Strcat_char(value, *q);
|
||||||
|
else
|
||||||
|
Strcat_char(value, ' ');
|
||||||
if (!tag->need_reconstruct && is_html_quote(*q))
|
if (!tag->need_reconstruct && is_html_quote(*q))
|
||||||
tag->need_reconstruct = TRUE;
|
tag->need_reconstruct = TRUE;
|
||||||
q++;
|
q++;
|
||||||
@@ -194,6 +196,8 @@ parse_tag(char **s, int internal)
|
|||||||
while (*q && *q != '\'') {
|
while (*q && *q != '\'') {
|
||||||
if (*q != '\n')
|
if (*q != '\n')
|
||||||
Strcat_char(value, *q);
|
Strcat_char(value, *q);
|
||||||
|
else
|
||||||
|
Strcat_char(value, ' ');
|
||||||
if (!tag->need_reconstruct && is_html_quote(*q))
|
if (!tag->need_reconstruct && is_html_quote(*q))
|
||||||
tag->need_reconstruct = TRUE;
|
tag->need_reconstruct = TRUE;
|
||||||
q++;
|
q++;
|
||||||
|
|||||||
Reference in New Issue
Block a user