aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-12-27 17:50:56 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-12-27 17:50:56 +0000
commit119ef254bc6dc1f1364adfd7af59d7d7dcb1f006 (patch)
tree53c2052df3a6b15a4fd8fcb259af1a2c7dba353d /file.c
parent[w3m-dev 02761] (diff)
downloadw3m-119ef254bc6dc1f1364adfd7af59d7d7dcb1f006.tar.gz
w3m-119ef254bc6dc1f1364adfd7af59d7d7dcb1f006.zip
[w3m-dev 02765] backend
From: Hironori Sakamoto <h-saka@lsi.nec.co.jp>
Diffstat (limited to '')
-rw-r--r--file.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/file.c b/file.c
index 5b28ebb..7cd0f3d 100644
--- a/file.c
+++ b/file.c
@@ -1,4 +1,4 @@
-/* $Id: file.c,v 1.36 2001/12/27 17:45:26 ukai Exp $ */
+/* $Id: file.c,v 1.37 2001/12/27 17:50:56 ukai Exp $ */
#include "fm.h"
#include <sys/types.h>
#include "myctype.h"
@@ -2025,13 +2025,8 @@ flushline(struct html_feed_environ *h_env, struct readbuffer *obuf, int indent,
#endif
if (lbuf->pos > h_env->maxlimit)
h_env->maxlimit = lbuf->pos;
- if (buf) {
+ if (buf)
pushTextLine(buf, lbuf);
- if (w3m_backend) {
- Strcat(backend_halfdump_str, lbuf->line);
- Strcat_char(backend_halfdump_str, '\n');
- }
- }
else {
Strfputs(lbuf->line, f);
fputc('\n', f);
@@ -2046,11 +2041,9 @@ flushline(struct html_feed_environ *h_env, struct readbuffer *obuf, int indent,
Str tmp = Strnew(), tmp2 = Strnew();
#define APPEND(str) \
- if (buf) { \
+ if (buf) \
appendTextLine(buf,(str),0); \
- if (w3m_backend) \
- Strcat(backend_halfdump_str, (str)); \
- } else \
+ else \
Strfputs((str),f)
while (*p) {
@@ -5074,6 +5067,8 @@ loadHTMLstream(URLFile *f, Buffer *newBuf, FILE * src, int internal)
newBuf->document_code = code;
content_charset = '\0';
#endif /* JP_CHARSET */
+ if (w3m_backend)
+ backend_halfdump_buf = htmlenv1.buf;
HTMLlineproc2(newBuf, htmlenv1.buf);
}