Mercurial > hg > batmud > maputils
changeset 914:570524776a68
Handle entities.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 23 Apr 2010 15:36:26 +0000 |
parents | 32532d4de594 |
children | 066fed52348d |
files | mkbcmap.c |
diffstat | 1 files changed, 10 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/mkbcmap.c Fri Apr 23 08:57:48 2010 +0000 +++ b/mkbcmap.c Fri Apr 23 15:36:26 2010 +0000 @@ -170,7 +170,7 @@ l, l, l); } - fprintf(f, "%c", c); + fprintfe(f, "%c", c); if (isURL) { fprintf(f, "</a>"); @@ -197,7 +197,7 @@ if (c != p) putEnd(outFile, c, p); else - fprintf(outFile, "%c", c); + fprintfe(outFile, "%c", c); } p = c; @@ -216,8 +216,7 @@ for (n = nStart; n <= nEnd; n++) { fprintf(outFile, - "<a class=\"loc\" id=\"listloc%d\" href=\"?%d\"" - "onmouseover=\"qh(%d)", n, n, n); + "<a class=\"loc\" id=\"listloc%d\" href=\"?%d\" onmouseover=\"qh(%d)", n, n, n); if (locations[n].extra) { fprintf(outFile, ";stt(%d);", n); @@ -227,10 +226,12 @@ "onmouseout=\"qn(%d);htt();\">", n); fprintf(outFile, - "[<span class=\"%c\">%c</span>]", - 'a' + (locations[n].c % 14) + 1, - locations[n].c - ); + "[<span class=\"%c\">", + 'a' + (locations[n].c % 14) + 1); + + fprintfe(outFile, "%c", locations[n].c); + + fprintf(outFile, "</span>]"); if (locations[n].desc) { fprintf(outFile, @@ -331,7 +332,7 @@ fprintf(outFile, " </style>\n" "</head>\n" - "<body onLoad=\"httOnLoad();\">\n" + "<body onload=\"httOnLoad();\">\n" ); if (optUseTable && optMapTitle) {