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 --- table.c | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) (limited to 'table.c') diff --git a/table.c b/table.c index 5065eaf..c032b2f 100644 --- a/table.c +++ b/table.c @@ -1,4 +1,4 @@ -/* $Id: table.c,v 1.34 2002/12/03 15:49:56 ukai Exp $ */ +/* $Id: table.c,v 1.35 2002/12/04 17:00:53 ukai Exp $ */ /* * HTML table */ @@ -2969,14 +2969,29 @@ feed_table_tag(struct table *tbl, char *line, struct table_mode *mode, suspend_or_pushdata(tbl, line); break; case HTML_DEL: + if (displayInsDel) + feed_table_inline_tag(tbl, line, mode, 5); /* [DEL: */ + else + mode->pre_mode |= TBLM_DEL; + break; case HTML_N_DEL: + if (displayInsDel) + feed_table_inline_tag(tbl, line, mode, 5); /* :DEL] */ + else + mode->pre_mode &= ~TBLM_DEL; + break; case HTML_INS: case HTML_N_INS: + if (displayInsDel) + feed_table_inline_tag(tbl, line, mode, 5); /* [INS:, :INS] */ + break; case HTML_SUP: - case HTML_N_SUP: case HTML_SUB: case HTML_N_SUB: - feed_table_inline_tag(tbl, line, mode, 5); + if (!(mode->pre_mode & TBLM_DEL)) + feed_table_inline_tag(tbl, line, mode, 1); /* ^, [, ] */ + break; + case HTML_N_SUP: break; case HTML_TABLE_ALT: id = -1; @@ -3102,6 +3117,10 @@ feed_table(struct table *tbl, char *line, struct table_mode *mode, return -1; } } + else { + if (mode->pre_mode & TBLM_DEL) + return -1; + } if (mode->caption) { Strcat_charp(tbl->caption, line); return -1; -- cgit v1.2.3