aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ChangeLog5
-rw-r--r--table.c8
2 files changed, 9 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 2d5c681..1165076 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-11-22 Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
+
+ * table.c (feed_table): fix the following table
+ <table border=1><tr><td>&lt &lt;</table>
+
2001-11-22 WATANABE Katsuyuki <katsuyuki_1.watanabe@toppan.co.jp>
* [w3m-dev 02497]
diff --git a/table.c b/table.c
index f40c56b..399edcf 100644
--- a/table.c
+++ b/table.c
@@ -1,4 +1,4 @@
-/* $Id: table.c,v 1.4 2001/11/16 22:02:00 ukai Exp $ */
+/* $Id: table.c,v 1.5 2001/11/22 13:35:45 ukai Exp $ */
/*
* HTML table
*/
@@ -3012,13 +3012,13 @@ feed_table(struct table *tbl, char *line, struct table_mode *mode,
q = p;
switch (ec = getescapechar(&p)) {
case '<':
- Strcat_charp(tmp, "<");
+ Strcat_charp(tmp, "&lt;");
break;
case '>':
- Strcat_charp(tmp, ">");
+ Strcat_charp(tmp, "&gt;");
break;
case '&':
- Strcat_charp(tmp, "&");
+ Strcat_charp(tmp, "&amp;");
break;
case '\r':
Strcat_char(tmp, '\n');