[w3m-dev 04021] Deeply nested table
Kiyokazu SUTO <[email protected]>
| Newsgroups | gmane.comp.web.w3m.devel |
|---|---|
| Message-ID | <[email protected]> |
MAX_TABLEを超えてネストしたtableがちゃんと閉じられていない場合、↓のよ うにしておかないとまずいのではないでしょうか。 -- 須藤 清一 <[email protected]> http://pub.ks-and-ks.ne.jp/pgp-public-key.html --- file.c.orig Fri Nov 28 22:46:31 2003 +++ file.c Fri Nov 28 22:44:15 2003 @@ -6387,6 +6387,9 @@ HTMLlineproc1("</title>", h_env); /* for unbalanced table tag */ + if (obuf->table_level >= MAX_TABLE) + obuf->table_level = MAX_TABLE - 1; + while (obuf->table_level >= 0) { table_mode[obuf->table_level].pre_mode &= ~(TBLM_SCRIPT | TBLM_STYLE | TBLM_PLAIN);