From 1d7704dc605651d2219ed641b29a437fae9efc93 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Fri, 6 Dec 2002 16:49:18 +0000 Subject: [w3m-dev 03536] , * file.c (HTMLtagproc1): .. is [S:...:S] (HTMLtagproc0): will delete * fm.h (RB_S): added * html.c (TagMAP): , move , * html.h (HTML_S): added (HTML_N_S): added (HTML_INTERNAL): renumed (HTML_N_INTERNAL): ditto (MAX_HTMLTAG): add 2 * rc.c (CMT_DISP_INS_DEL): update * table.c (feed_table_tag): add HTML_S, HTML_N_S * table.h (TBLM_S): added (TBLM_ANCHOR): renum * tagtable.tab: (strike, s): HTML_S (/strike, /s): HTML_N_S From: Hironori SAKAMOTO --- table.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'table.c') diff --git a/table.c b/table.c index c032b2f..8e121ac 100644 --- a/table.c +++ b/table.c @@ -1,4 +1,4 @@ -/* $Id: table.c,v 1.35 2002/12/04 17:00:53 ukai Exp $ */ +/* $Id: table.c,v 1.36 2002/12/06 16:50:41 ukai Exp $ */ /* * HTML table */ @@ -2980,6 +2980,18 @@ feed_table_tag(struct table *tbl, char *line, struct table_mode *mode, else mode->pre_mode &= ~TBLM_DEL; break; + case HTML_S: + if (displayInsDel) + feed_table_inline_tag(tbl, line, mode, 3); /* [S: */ + else + mode->pre_mode |= TBLM_S; + break; + case HTML_N_S: + if (displayInsDel) + feed_table_inline_tag(tbl, line, mode, 3); /* :S] */ + else + mode->pre_mode &= ~TBLM_S; + break; case HTML_INS: case HTML_N_INS: if (displayInsDel) @@ -2988,7 +3000,7 @@ feed_table_tag(struct table *tbl, char *line, struct table_mode *mode, case HTML_SUP: case HTML_SUB: case HTML_N_SUB: - if (!(mode->pre_mode & TBLM_DEL)) + if (!(mode->pre_mode & (TBLM_DEL | TBLM_S))) feed_table_inline_tag(tbl, line, mode, 1); /* ^, [, ] */ break; case HTML_N_SUP: @@ -3118,7 +3130,7 @@ feed_table(struct table *tbl, char *line, struct table_mode *mode, } } else { - if (mode->pre_mode & TBLM_DEL) + if (mode->pre_mode & (TBLM_DEL | TBLM_S)) return -1; } if (mode->caption) { -- cgit v1.2.3