[w3m-dev 04110] form の value の改行の扱い

Hideyuki SHIRAI (白井秀行) <[email protected]>
Newsgroups gmane.comp.web.w3m.devel
Organization Resident at Meadowy park.
Message-ID <[email protected]>
## multi-part 



form 

 Mixi (http://mixi.jp) 
w3m-0.4.xw3m-0.5.x 


Mixi 

(1) form  textarea 
(2) (1) 
(3) OK (1) 
(4) 

 (1) (4) 


Emacs-w3m 
(2)  (3)  kaigyou.html  HTML 



% w3m -halfdump kaigyou.html > kaigyou.dump

kaigyou.dump 

<input_alt hseq="2" fid="0" type="hidden" name="diary_body" value="abc" maxlength="20">



<input_alt hseq="2" fid="0" type="hidden" name="diary_body" value="a
b
c



" maxlength="20">

 emacs-w3m 
w3m w3m 

( ^^;;;)
/value 

 (_ _)

# w3m, emacs-w3m 
# Firefox, IE, NetFront 
## 

--
 (mailto:[email protected])

------------ ------------
<html>
<head>
<title> value</title>
</head>

<form action="add_diary.pl" method=post>
<input type=hidden name=submit value=confirm>
<input type=hidden name=diary_body value="a
b
c



">
<td><input type=submit value=""></td>
</form>

</body>
</html>
-------------------------------

------------ ------------
Index: parsetagx.c
===================================================================
RCS file: /cvsroot/w3m/w3m/parsetagx.c,v
retrieving revision 1.14
diff -u -r1.14 parsetagx.c
--- parsetagx.c	5 Feb 2003 16:44:00 -0000	1.14
+++ parsetagx.c	30 Oct 2004 12:47:50 -0000
@@ -180,8 +180,7 @@
 	    if (*q == '"') {
 		q++;
 		while (*q && *q != '"') {
-		    if (*q != '\n')
-			Strcat_char(value, *q);
+		    Strcat_char(value, *q);
 		    if (!tag->need_reconstruct && is_html_quote(*q))
 			tag->need_reconstruct = TRUE;
 		    q++;
@@ -192,8 +191,7 @@
 	    else if (*q == '\'') {
 		q++;
 		while (*q && *q != '\'') {
-		    if (*q != '\n')
-			Strcat_char(value, *q);
+		    Strcat_char(value, *q);
 		    if (!tag->need_reconstruct && is_html_quote(*q))
 			tag->need_reconstruct = TRUE;
 		    q++;
-------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.