summaryrefslogtreecommitdiffstats
path: root/worldmap-save.c
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2014-04-06 08:14:40 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-04-06 14:17:09 -0700
commit1b6b2b78c8735206e172c4cfda1887cb22e62792 (patch)
treec24517ff8a5ec4c5dd0f38fb6e87fd1bb291a03a /worldmap-save.c
parent63943371bd39348fde3a7fe15c8f655f95684f42 (diff)
downloadsubsurface-1b6b2b78c8735206e172c4cfda1887cb22e62792.tar.gz
Fix HTML errors
- There needs to be a space between HTML attributes. - Ampersand must be encoded on URL addresses - Div element is non-void, so it cannot be self closed Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'worldmap-save.c')
-rw-r--r--worldmap-save.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/worldmap-save.c b/worldmap-save.c
index 36ee94311..e867846f5 100644
--- a/worldmap-save.c
+++ b/worldmap-save.c
@@ -122,9 +122,9 @@ void insert_css(struct membuffer *b)
void insert_javascript(struct membuffer *b)
{
- put_string(b, "<script type=\"text/javascript\"src=\"");
+ put_string(b, "<script type=\"text/javascript\" src=\"");
put_string(b, getGoogleApi());
- put_string(b, "&sensor=false\">\n</script>\n<script type=\"text/javascript\">\nvar map;\n");
+ put_string(b, "&amp;sensor=false\">\n</script>\n<script type=\"text/javascript\">\nvar map;\n");
put_format(b, "function initialize() {\nvar mapOptions = {\n\t%s,", map_options);
put_string(b, "rotateControl: false,\n\tstreetViewControl: false,\n\tmapTypeControl: false\n};\n");
put_string(b, "map = new google.maps.Map(document.getElementById(\"map-canvas\"),mapOptions);\nvar markers = new Array();");
@@ -139,7 +139,7 @@ void export(struct membuffer *b)
insert_html_header(b);
insert_css(b);
insert_javascript(b);
- put_string(b, "\t</head>\n<body>\n<div id=\"map-canvas\"/>\n</body>\n</html>");
+ put_string(b, "\t</head>\n<body>\n<div id=\"map-canvas\"></div>\n</body>\n</html>");
}
void export_worldmap_HTML(const char *file_name)