tremove code from block tag, add some TODO - webdump - [FORK] git://git.codemadness.org/webdump
(HTM) git clone git://git.z3bra.org/webdump.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit de7e902fa925618e4cfb24b044a18b5db2118b03
(DIR) parent d43a011c4cd01f75ec9169ce745d6d1e13958729
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 26 Aug 2017 12:45:00 +0200
remove code from block tag, add some TODO
Diffstat:
M TODO | 2 ++
M main.c | 4 +++-
2 files changed, 5 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/TODO b/TODO
t@@ -1 +1,3 @@
+- <code> should not be treated as a block (<pre> does?)
+
? xml.c: make sure to always call xmldata handler even if datalen == 0 ?
(DIR) diff --git a/main.c b/main.c
t@@ -81,7 +81,6 @@ static char *blocktags[] = {
"title",
"tr",
"table",
- "code",
"blockquote",
"div",
};
t@@ -216,6 +215,9 @@ xmldataentity(XMLParser *p, const char *data, size_t datalen)
int n;
/* convert basic XML entities */
+ /* ©, copy table from Links (check license) */
+ /* rsquo, hellip, ndash, lsquo */
+ /* TODO: add to tscrape too */
/* TODO: support some more HTML entities */
n = xml_entitytostr(data, buf, sizeof(buf));
if (n <= 0)