summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Aylett <james@tartarus.org>2001-01-06 11:34:43 +0000
committerJames Aylett <james@tartarus.org>2001-01-06 11:34:43 +0000
commitefaaaaaa4e367725a1ee6ad589705becd5ced7a3 (patch)
tree1a49acbea9f46d152d0afcb6b4af99be089c6f61
parent22a27abf9f7e6da7c6971451df8aa8291e2ac499 (diff)
downloadhalibut-efaaaaaa4e367725a1ee6ad589705becd5ced7a3.zip
halibut-efaaaaaa4e367725a1ee6ad589705becd5ced7a3.tar.gz
halibut-efaaaaaa4e367725a1ee6ad589705becd5ced7a3.tar.bz2
halibut-efaaaaaa4e367725a1ee6ad589705becd5ced7a3.tar.xz
Numeric entity references are in decimal, not hex (sgt).
[originally from svn r834]
-rw-r--r--bk_xhtml.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/bk_xhtml.c b/bk_xhtml.c
index 1cb4ecc..01793ee 100644
--- a/bk_xhtml.c
+++ b/bk_xhtml.c
@@ -5,8 +5,6 @@
* Still to do:
*
* +++ doesn't handle non-breaking hyphens. Not sure how to yet.
- * +++ HTML 4 and Netscape don't like hex numeric entity refs, according
- * to SGT. Am I wrong, or him, or them?
* +++ entity names (from a file -- ideally supply normal SGML files)
* +++ configuration directive to file split where the current layout
* code wouldn't. Needs changes to _ponder_layout() and _do_paras(),
@@ -598,7 +596,7 @@ static void xhtml_do_index()
fprintf(fp, "<dt>");
xhtml_para(fp, y->text);
fprintf(fp, "</dt>\n<dd>");
-
+
xi = (xhtmlindex*) y->backend_data;
for (i=0; i<xi->nsection; i++) {
xhtmlsection *sect = xi->sections[i];
@@ -1411,7 +1409,7 @@ static int xhtml_convert(wchar_t *s, char **result, int hard_spaces) {
} else {
/* FIXME: entity names! */
ensure_size(plen+7); /* includes space for the NUL, which is subsequently stomped on */
- sprintf(p+plen, "&#%4.4X;", (int)c);
+ sprintf(p+plen, "&#%i;", (int)c);
plen+=7;
}
}