Mercurial > hg > batmud > maputils
changeset 941:e8d728edb54a
Set link targets in GMapsXML output to "_blank" to open them in separate windows/tabs.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 12 May 2010 12:40:03 +0000 |
parents | 41997fd4e0ed |
children | f48f9538cb29 |
files | mkloc.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mkloc.c Wed May 05 00:46:10 2010 +0000 +++ b/mkloc.c Wed May 12 12:40:03 2010 +0000 @@ -1563,7 +1563,7 @@ fprinte(outFile, str); fprintf(outFile, "\" html=\""); if (tmp->uri != NULL) - fprintfe(outFile, "<b><a href=\"%s\">%s</a></b><br>", tmp->uri, str); + fprintfe(outFile, "<b><a target=\"_blank\" href=\"%s\">%s</a></b><br>", tmp->uri, str); else fprintfe(outFile, "<b>%s</b><br>", str); @@ -1596,7 +1596,7 @@ } else { fprinte(outFile, "Coders: "); for (n = 0; n < tmp->ncoders; n++) { - fprintfe(outFile, "<a href=\"http://www.bat.org/char/%s\">%s</a>", + fprintfe(outFile, "<a target=\"_blank\" href=\"http://www.bat.org/char/%s\">%s</a>", tmp->coders[n], tmp->coders[n]); if (n < tmp->ncoders - 1) fprinte(outFile, ", ");