diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-12-06 16:49:18 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-12-06 16:49:18 +0000 |
commit | 1d7704dc605651d2219ed641b29a437fae9efc93 (patch) | |
tree | 0495d9e2c93828c311a2cadb202e3c7bdb4366f0 /table.c | |
parent | [w3m-dev 03535] close anchor, quote < (diff) | |
download | w3m-1d7704dc605651d2219ed641b29a437fae9efc93.tar.gz w3m-1d7704dc605651d2219ed641b29a437fae9efc93.zip |
[w3m-dev 03536] <del>, <s>
* file.c (HTMLtagproc1): <s>..</s> is [S:...:S]
(HTMLtagproc0): <del> will delete <table>
* fm.h (RB_S): added
* html.c (TagMAP): <s>,</s>
move <internal>, </internal>
* 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 <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rw-r--r-- | table.c | 18 |
1 files changed, 15 insertions, 3 deletions
@@ -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) { |