From 650e90ad7502f25da1b0883950eca7cadba3ea86 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Wed, 4 Dec 2002 17:00:44 +0000 Subject: [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 --- file.c | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) (limited to 'file.c') 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 #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("[DEL:", h_env); + if (displayInsDel) + HTMLlineproc1("[DEL:", h_env); + else + obuf->flag |= RB_DEL; return 1; case HTML_N_DEL: - HTMLlineproc1(":DEL]", h_env); + if (displayInsDel) + HTMLlineproc1(":DEL]", h_env); + else + obuf->flag &= ~RB_DEL; return 1; case HTML_INS: - HTMLlineproc1("[INS:", h_env); + if (displayInsDel) + HTMLlineproc1("[INS:", h_env); return 1; case HTML_N_INS: - HTMLlineproc1(":INS]", h_env); + if (displayInsDel) + HTMLlineproc1(":INS]", 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); -- cgit v1.2.3