diff options
author | Ole Loots <ole@monochrom.net> | 2012-12-31 03:41:41 +0100 |
---|---|---|
committer | Ole Loots <ole@monochrom.net> | 2012-12-31 03:41:41 +0100 |
commit | cecccf09edf7e7296e4765f7e70e4c42c5ad8805 (patch) | |
tree | bf776943935c597e867a6bdba3710e5d4cb73115 /desktop/tree_url_node.c | |
parent | 379313d8da957be5a39a6cab35f73ed6c247ccb4 (diff) | |
parent | ea3f09a72433be165cc4ec09052b3d636e64ac0c (diff) | |
download | netsurf-cecccf09edf7e7296e4765f7e70e4c42c5ad8805.tar.gz netsurf-cecccf09edf7e7296e4765f7e70e4c42c5ad8805.tar.bz2 |
Merge branch 'master' into mono/removing-windom-dependency
Diffstat (limited to 'desktop/tree_url_node.c')
-rw-r--r-- | desktop/tree_url_node.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/desktop/tree_url_node.c b/desktop/tree_url_node.c index d2701e5b1..5305fa11d 100644 --- a/desktop/tree_url_node.c +++ b/desktop/tree_url_node.c @@ -817,11 +817,11 @@ static bool tree_url_save_entry(struct node *entry, FILE *fp) if (href == NULL) return false; - ret = utf8_to_enc(text, "iso-8859-1", strlen(text), &latin1_text); + ret = utf8_to_html(text, "iso-8859-1", strlen(text), &latin1_text); if (ret != UTF8_CONVERT_OK) return false; - ret = utf8_to_enc(href, "iso-8859-1", strlen(href), &latin1_href); + ret = utf8_to_html(href, "iso-8859-1", strlen(href), &latin1_href); if (ret != UTF8_CONVERT_OK) { free(latin1_text); return false; @@ -872,7 +872,7 @@ static bool tree_url_save_directory(struct node *directory, FILE *fp) if (text == NULL) return false; - ret = utf8_to_enc(text, "iso-8859-1", + ret = utf8_to_html(text, "iso-8859-1", strlen(text), &latin1_text); if (ret != UTF8_CONVERT_OK) return false; @@ -919,7 +919,7 @@ bool tree_urlfile_save(struct tree *tree, const char *filename, fputs("<meta http-equiv=\"Content-Type\" " "content=\"text/html; charset=iso-8859-1\">\n", fp); fprintf(fp, "<title>%s</title>\n", page_title); - fputs("<body>", fp); + fputs("</head>\n<body>", fp); if (tree_url_save_directory(tree_get_root(tree), fp) == false) { warn_user("HotlistSaveError", 0); |