aboutsummaryrefslogtreecommitdiffstats
path: root/table.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-12-04 17:00:44 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-12-04 17:00:44 +0000
commit650e90ad7502f25da1b0883950eca7cadba3ea86 (patch)
tree399233ce3a8a88ea140ec5e9ca129113c3cfe8e4 /table.c
parent[w3m-dev 03522] newline around <pre>..</pre> (diff)
downloadw3m-650e90ad7502f25da1b0883950eca7cadba3ea86.tar.gz
w3m-650e90ad7502f25da1b0883950eca7cadba3ea86.zip
[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 <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rw-r--r--table.c25
1 files changed, 22 insertions, 3 deletions
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;