aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-11-22 13:35:45 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-11-22 13:35:45 +0000
commitf95b1ecd7642716355160afe2ffb22088a358061 (patch)
treebf65f6dfebd78d4f99add6396f9c858fac623fe0
parent[w3m-dev 02497] (diff)
downloadw3m-f95b1ecd7642716355160afe2ffb22088a358061.tar.gz
w3m-f95b1ecd7642716355160afe2ffb22088a358061.zip
[w3m-dev 02498]
From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
-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');