w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit f405b747743860be8d1d3ecd19b3407594adae17
parent e48146e3e3bebc8d5d54d8fb3cfba50fb8c3ca57
Author: ukai <ukai>
Date:   Thu, 10 Oct 2002 16:59:32 +0000

 [w3m-dev 03339] Re: Debian Bug#164098 w3m: <sup> is not properly supported
* file.c (HTMLtagproc1): HTML_SUP, HTML_N_SUP, HTML_SUB, HTML_N_SUB
* html.c (TagMAP): sup, /sup, sub, /sub
* html.c (HTML_SUP): added
	(HTML_N_SUP): added
	(HTML_SUB): added
	(HTML_N_SUB): added
* table.c (feed_table_tag): HTML_SUP, HTML_N_SUP, HTML_SUB, HTML_N_SUB
* tagtable.tab (sup): added
	(/sup): added
	(sub): added
	(/sub): added
From: Fumitoshi UKAI  <ukai@debian.or.jp>

Diffstat:
MChangeLog | 15+++++++++++++++
Mfile.c | 11+++++++++++
Mhtml.c | 8++++----
Mhtml.h | 5++++-
Mtable.c | 4++++
Mtagtable.tab | 4++++
6 files changed, 42 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,18 @@ +2002-10-11 Fumitoshi UKAI <ukai@debian.or.jp> + + * [w3m-dev 03339] Re: Debian Bug#164098 w3m: <sup> is not properly supported + * file.c (HTMLtagproc1): HTML_SUP, HTML_N_SUP, HTML_SUB, HTML_N_SUB + * html.c (TagMAP): sup, /sup, sub, /sub + * html.c (HTML_SUP): added + (HTML_N_SUP): added + (HTML_SUB): added + (HTML_N_SUB): added + * table.c (feed_table_tag): HTML_SUP, HTML_N_SUP, HTML_SUB, HTML_N_SUB + * tagtable.tab (sup): added + (/sup): added + (sub): added + (/sub): added + 2002-10-11 Hiroyuki Ito <hito@crl.go.jp> * [w3m-dev 03337] delete unused functions in fb.c etc. (Re: canna patch) diff --git a/file.c b/file.c @@ -4591,6 +4591,17 @@ HTMLtagproc1(struct parsed_tag *tag, struct html_feed_environ *h_env) case HTML_N_INS: HTMLlineproc1("<U>:INS]</U>", h_env); return 1; + case HTML_SUP: + HTMLlineproc1("^", h_env); + return 1; + case HTML_N_SUP: + return 1; + case HTML_SUB: + HTMLlineproc1("[", h_env); + return 1; + case HTML_N_SUB: + HTMLlineproc1("]", h_env); + return 1; case HTML_FONT: case HTML_N_FONT: case HTML_NOP: diff --git a/html.c b/html.c @@ -216,10 +216,10 @@ TagInfo TagMAP[MAX_HTMLTAG] = { {"noframes", ALST_NOFRAMES, MAXA_NOFRAMES, 0}, /* 98 HTML_NOFRAMES */ {"/noframes", NULL, 0, TFLG_END}, /* 99 HTML_N_NOFRAMES */ - {NULL, NULL, 0, 0}, /* 100 Undefined */ - {NULL, NULL, 0, 0}, /* 101 Undefined */ - {NULL, NULL, 0, 0}, /* 102 Undefined */ - {NULL, NULL, 0, 0}, /* 103 Undefined */ + {"sup", NULL, 0, 0}, /* 100 HTML_SUP */ + {"/sup", NULL, 0, 0}, /* 101 HTML_N_SUP */ + {"sub", NULL, 0, 0}, /* 102 HTML_SUB */ + {"/sub", NULL, 0, 0}, /* 103 HTML_N_SUB */ {NULL, NULL, 0, 0}, /* 104 Undefined */ {NULL, NULL, 0, 0}, /* 105 Undefined */ diff --git a/html.h b/html.h @@ -185,7 +185,10 @@ typedef struct { #define HTML_DOCTYPE 97 #define HTML_NOFRAMES 98 #define HTML_N_NOFRAMES 99 - +#define HTML_SUP 100 +#define HTML_N_SUP 101 +#define HTML_SUB 102 +#define HTML_N_SUB 103 /* pseudo tag */ #define HTML_INTERNAL 106 diff --git a/table.c b/table.c @@ -2896,6 +2896,10 @@ feed_table_tag(struct table *tbl, char *line, struct table_mode *mode, case HTML_N_DEL: case HTML_INS: case HTML_N_INS: + case HTML_SUP: + case HTML_N_SUP: + case HTML_SUB: + case HTML_N_SUB: feed_table_inline_tag(tbl, line, mode, 5); break; case HTML_TABLE_ALT: diff --git a/tagtable.tab b/tagtable.tab @@ -139,6 +139,10 @@ tfoot HTML_TFOOT colgroup HTML_COLGROUP /colgroup HTML_N_COLGROUP col HTML_COL +sup HTML_SUP +/sup HTML_N_SUP +sub HTML_SUB +/sub HTML_N_SUB table_alt HTML_TABLE_ALT _rule HTML_RULE /_rule HTML_N_RULE