aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-12-04 17:00:44 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-12-04 17:00:44 +0000
commit650e90ad7502f25da1b0883950eca7cadba3ea86 (patch)
tree399233ce3a8a88ea140ec5e9ca129113c3cfe8e4 /file.c
parent[w3m-dev 03522] newline around <pre>..</pre> (diff)
downloadw3m-650e90ad7502f25da1b0883950eca7cadba3ea86.tar.gz
w3m-650e90ad7502f25da1b0883950eca7cadba3ea86.zip
[w3m-dev 03523] Re: del/ins
* file.c (HTMLtagproc1): check displayInsDel, RB_DEL * fm.h (RB_DEL): added (displayInsDel): added * rc.c (CMT_DISP_INS_DEL): added (display_ins_del): added * table.c (feed_table_tag): check displayInsDel, TBLM_DEL * table.h (TBLM_DEL): added (TBLM_ANCHOR): renum (struct table_mode): unsigned int pre_mode From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rw-r--r--file.c29
1 files changed, 21 insertions, 8 deletions
diff --git a/file.c b/file.c
index 8b17e05..0830b7a 100644
--- a/file.c
+++ b/file.c
@@ -1,4 +1,4 @@
-/* $Id: file.c,v 1.144 2002/12/04 16:55:06 ukai Exp $ */
+/* $Id: file.c,v 1.145 2002/12/04 17:00:48 ukai Exp $ */
#include "fm.h"
#include <sys/types.h>
#include "myctype.h"
@@ -4713,27 +4713,38 @@ HTMLtagproc1(struct parsed_tag *tag, struct html_feed_environ *h_env)
case HTML_AREA:
return 0;
case HTML_DEL:
- HTMLlineproc1("<U>[DEL:</U>", h_env);
+ if (displayInsDel)
+ HTMLlineproc1("<U>[DEL:</U>", h_env);
+ else
+ obuf->flag |= RB_DEL;
return 1;
case HTML_N_DEL:
- HTMLlineproc1("<U>:DEL]</U>", h_env);
+ if (displayInsDel)
+ HTMLlineproc1("<U>:DEL]</U>", h_env);
+ else
+ obuf->flag &= ~RB_DEL;
return 1;
case HTML_INS:
- HTMLlineproc1("<U>[INS:</U>", h_env);
+ if (displayInsDel)
+ HTMLlineproc1("<U>[INS:</U>", h_env);
return 1;
case HTML_N_INS:
- HTMLlineproc1("<U>:INS]</U>", h_env);
+ if (displayInsDel)
+ HTMLlineproc1("<U>:INS]</U>", h_env);
return 1;
case HTML_SUP:
- HTMLlineproc1("^", h_env);
+ if (!(obuf->flag & RB_DEL))
+ HTMLlineproc1("^", h_env);
return 1;
case HTML_N_SUP:
return 1;
case HTML_SUB:
- HTMLlineproc1("[", h_env);
+ if (!(obuf->flag & RB_DEL))
+ HTMLlineproc1("[", h_env);
return 1;
case HTML_N_SUB:
- HTMLlineproc1("]", h_env);
+ if (!(obuf->flag & RB_DEL))
+ HTMLlineproc1("]", h_env);
return 1;
case HTML_FONT:
case HTML_N_FONT:
@@ -5677,6 +5688,8 @@ HTMLlineproc0(char *line, struct html_feed_environ *h_env, int internal)
continue;
}
+ if (obuf->flag & RB_DEL)
+ continue;
while (*str) {
mode = get_mctype(str);
delta = get_mclen(mode);