Author: carlosgc
Date: Sun Jan 27 18:07:48 2008
New Revision: 2865
URL: http://svn.gnome.org/viewvc/evince?rev=2865&view=rev

Log:
2008-01-27  Carlos Garcia Campos  <[EMAIL PROTECTED]>
        * backend/dvi/dvi-document.c: (dvi_document_file_exporter_end):
        Fix printing in dvi backend when filename contains white
        espaces. Fixes bug #502839.


Modified:
   trunk/ChangeLog
   trunk/backend/dvi/dvi-document.c

Modified: trunk/backend/dvi/dvi-document.c
==============================================================================
--- trunk/backend/dvi/dvi-document.c    (original)
+++ trunk/backend/dvi/dvi-document.c    Sun Jan 27 18:07:48 2008
@@ -363,7 +363,7 @@
        
        if (dvi_document->exporter_filename)
                g_free (dvi_document->exporter_filename);       
-       dvi_document->exporter_filename = g_strdup(fc->filename);
+       dvi_document->exporter_filename = g_strdup (fc->filename);
        
        if (dvi_document->exporter_opts) {
                g_string_free (dvi_document->exporter_opts, TRUE);
@@ -377,7 +377,7 @@
 {
        DviDocument *dvi_document = DVI_DOCUMENT(exporter);
 
-       g_string_append_printf(dvi_document->exporter_opts, "%d,", 
(rc->page)+1);
+       g_string_append_printf (dvi_document->exporter_opts, "%d,", (rc->page) 
+ 1);
 }
 
 static void
@@ -390,7 +390,7 @@
        
        DviDocument *dvi_document = DVI_DOCUMENT(exporter);
        
-       command_line = g_strdup_printf ("dvipdfm %s -o %s %s", /* dvipdfm -s 
1,2,.., -o exporter_filename dvi_filename */
+       command_line = g_strdup_printf ("dvipdfm %s -o %s \"%s\"", /* dvipdfm 
-s 1,2,.., -o exporter_filename dvi_filename */
                                        dvi_document->exporter_opts->str,
                                        dvi_document->exporter_filename,
                                        dvi_document->context->filename);
@@ -401,7 +401,7 @@
                                             &exit_stat,
                                             &err);
 
-       g_free(command_line);
+       g_free (command_line);
 
        if (success == FALSE) {
                g_warning ("Error: %s", err->message);
@@ -410,7 +410,7 @@
        }
 
        if (err)
-               g_error_free(err);
+               g_error_free (err);
 }
 
 static EvFileExporterCapabilities
_______________________________________________
SVN-commits-list mailing list (read only)
http://mail.gnome.org/mailman/listinfo/svn-commits-list

Want to limit the commits to a few modules? Go to above URL, log in to edit 
your options and select the modules ('topics') you want.
Module maintainer? It is possible to set the reply-to to your development 
mailing list. Email [EMAIL PROTECTED] if interested.

Reply via email to