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 --- file.c | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) (limited to 'file.c') diff --git a/file.c b/file.c index 3f5e61c..8d77d02 100644 --- a/file.c +++ b/file.c @@ -1,4 +1,4 @@ -/* $Id: file.c,v 1.150 2002/12/06 16:37:54 ukai Exp $ */ +/* $Id: file.c,v 1.151 2002/12/06 16:49:49 ukai Exp $ */ #include "fm.h" #include #include "myctype.h" @@ -4756,6 +4756,18 @@ HTMLtagproc1(struct parsed_tag *tag, struct html_feed_environ *h_env) else obuf->flag &= ~RB_DEL; return 1; + case HTML_S: + if (displayInsDel) + HTMLlineproc1("[S:", h_env); + else + obuf->flag |= RB_S; + return 1; + case HTML_N_S: + if (displayInsDel) + HTMLlineproc1(":S]", h_env); + else + obuf->flag &= ~RB_S; + return 1; case HTML_INS: if (displayInsDel) HTMLlineproc1("[INS:", h_env); @@ -4765,17 +4777,17 @@ HTMLtagproc1(struct parsed_tag *tag, struct html_feed_environ *h_env) HTMLlineproc1(":INS]", h_env); return 1; case HTML_SUP: - if (!(obuf->flag & RB_DEL)) + if (!(obuf->flag & (RB_DEL | RB_S))) HTMLlineproc1("^", h_env); return 1; case HTML_N_SUP: return 1; case HTML_SUB: - if (!(obuf->flag & RB_DEL)) + if (!(obuf->flag & (RB_DEL | RB_S))) HTMLlineproc1("[", h_env); return 1; case HTML_N_SUB: - if (!(obuf->flag & RB_DEL)) + if (!(obuf->flag & (RB_DEL | RB_S))) HTMLlineproc1("]", h_env); return 1; case HTML_FONT: @@ -5667,6 +5679,8 @@ HTMLlineproc0(char *line, struct html_feed_environ *h_env, int internal) continue; /* continue to the next */ } + if (obuf->flag & RB_DEL) + continue; /* all tables have been read */ if (tbl->vspace > 0 && !(obuf->flag & RB_IGNORE_P)) { int indent = h_env->envs[h_env->envc].indent; @@ -5718,7 +5732,7 @@ HTMLlineproc0(char *line, struct html_feed_environ *h_env, int internal) continue; } - if (obuf->flag & RB_DEL) + if (obuf->flag & (RB_DEL | RB_S)) continue; while (*str) { mode = get_mctype(str); -- cgit v1.2.3