+2008-01-27 Carlos Garcia Campos <carlosgc@gnome.org>
+
+ * backend/dvi/dvi-document.c: (dvi_document_file_exporter_end):
+
+ Fix printing in dvi backend when filename contains white
+ espaces. Fixes bug #502839.
+
2008-01-26 Carlos Garcia Campos <carlosgc@gnome.org>
* cut-n-paste/totem-screensaver/totem-scrsaver.c:
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);
{
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
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);
&exit_stat,
&err);
- g_free(command_line);
+ g_free (command_line);
if (success == FALSE) {
g_warning ("Error: %s", err->message);
}
if (err)
- g_error_free(err);
+ g_error_free (err);
}
static EvFileExporterCapabilities