From ea3f09a72433be165cc4ec09052b3d636e64ac0c Mon Sep 17 00:00:00 2001 From: John-Mark Bell Date: Sun, 30 Dec 2012 23:33:27 +0000 Subject: Correctly emit entities when serialising to HTML. --- desktop/tree_url_node.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'desktop/tree_url_node.c') 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("\n", fp); fprintf(fp, "%s\n", page_title); - fputs("", fp); + fputs("\n", fp); if (tree_url_save_directory(tree_get_root(tree), fp) == false) { warn_user("HotlistSaveError", 0); -- cgit v1.2.3