* LyX, The Document Processor
*
* Copyright 1995 Matthias Ettrich
- * Copyright 1995-2000 The LyX Team.
+ * Copyright 1995-2001 The LyX Team.
*
* ====================================================== */
#include "lyxrc.h"
#include "converter.h"
#include "lyx_gui_misc.h" //WriteAlert
+#include "gettext.h"
using std::vector;
using std::find;
// LaTeX backend
else if (backend_format == format)
buffer->makeLaTeXFile(filename, string(), true);
- else
+ else if (contains(buffer->filepath, ' ')) {
+ WriteAlert(_("Cannot run latex."),
+ _("The path to the lyx file cannot contain spaces."));
+ return false;
+ } else
buffer->makeLaTeXFile(filename, buffer->filepath, false);
string outfile_base = (put_in_tempdir)