[gnome-documents] utils: Fix the RDF type of text and HTML files



commit 6bae1a3306d5eb0a9750ff7d663347c07ddfd2fe
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Aug 28 21:01:54 2014 +0200

    utils: Fix the RDF type of text and HTML files
    
    The nfo:HtmlDocument is for HTML files, not text files.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=735630

 src/lib/gd-utils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/lib/gd-utils.c b/src/lib/gd-utils.c
index b4d42ce..23b59d3 100644
--- a/src/lib/gd-utils.c
+++ b/src/lib/gd-utils.c
@@ -202,7 +202,7 @@ gd_filename_to_rdf_type (const gchar *filename_with_extension)
 
   extension = gd_filename_get_extension_offset (filename_with_extension);
 
-  if (g_strcmp0 (extension, ".txt") == 0)
+  if (g_strcmp0 (extension, ".html") == 0)
     type = "nfo:HtmlDocument";
 
   else if (g_strcmp0 (extension, ".doc") == 0


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]