From efaaaaaa4e367725a1ee6ad589705becd5ced7a3 Mon Sep 17 00:00:00 2001 From: James Aylett Date: Sat, 6 Jan 2001 11:34:43 +0000 Subject: Numeric entity references are in decimal, not hex (sgt). [originally from svn r834] --- bk_xhtml.c | 6 ++---- 1 file 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, "
"); xhtml_para(fp, y->text); fprintf(fp, "
\n
"); - + xi = (xhtmlindex*) y->backend_data; for (i=0; insection; 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; } } -- cgit v1.1