Rename HTML import function from mozilla to netscape to be more consistent.
This commit is contained in:
parent
1b5d01241c
commit
74bb09b8c7
1 changed files with 3 additions and 3 deletions
|
@ -294,7 +294,7 @@ katze_array_from_xmlDocPtr (KatzeArray* array,
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
katze_array_from_mozilla_file (KatzeArray* array,
|
katze_array_from_netscape_file (KatzeArray* array,
|
||||||
const gchar* filename)
|
const gchar* filename)
|
||||||
{
|
{
|
||||||
gchar* line = NULL;
|
gchar* line = NULL;
|
||||||
|
@ -489,7 +489,7 @@ midori_array_from_file (KatzeArray* array,
|
||||||
if (!format)
|
if (!format)
|
||||||
format = "";
|
format = "";
|
||||||
|
|
||||||
/* mozilla html */
|
/* netscape html */
|
||||||
if (!*format && g_str_has_suffix (filename, ".html"))
|
if (!*format && g_str_has_suffix (filename, ".html"))
|
||||||
{
|
{
|
||||||
FILE* file;
|
FILE* file;
|
||||||
|
@ -501,7 +501,7 @@ midori_array_from_file (KatzeArray* array,
|
||||||
g_strstrip (line);
|
g_strstrip (line);
|
||||||
if (katze_str_equal (line, "<!DOCTYPE NETSCAPE-Bookmark-file-1>"))
|
if (katze_str_equal (line, "<!DOCTYPE NETSCAPE-Bookmark-file-1>"))
|
||||||
{
|
{
|
||||||
if (!katze_array_from_mozilla_file (array, filename))
|
if (!katze_array_from_netscape_file (array, filename))
|
||||||
{
|
{
|
||||||
/* Parsing failed */
|
/* Parsing failed */
|
||||||
fclose (file);
|
fclose (file);
|
||||||
|
|
Loading…
Reference in a new issue