diff options
author | Dai Sato <satodai@w3m.jp> | 2006-04-07 15:38:42 +0000 |
---|---|---|
committer | Dai Sato <satodai@w3m.jp> | 2006-04-07 15:38:42 +0000 |
commit | 8396b91227eecfa81934ff17e500693afcf49412 (patch) | |
tree | cbdb2f7028af048fb92cffb6bd1989dae89feb5b /parsetagx.c | |
parent | Add w3mman -l <file> command line argument for viewing of local man files. (diff) | |
download | w3m-8396b91227eecfa81934ff17e500693afcf49412.tar.gz w3m-8396b91227eecfa81934ff17e500693afcf49412.zip |
Replace '\n' (newline) with ' ' (space) in attributes of html tags.
Diffstat (limited to 'parsetagx.c')
-rw-r--r-- | parsetagx.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/parsetagx.c b/parsetagx.c index be5c013..df4b946 100644 --- a/parsetagx.c +++ b/parsetagx.c @@ -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 "myctype.h" #include "indep.h" @@ -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++; |