mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-09 18:52:46 +00:00
Give an error message when path to file contains spaces.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_1_6@1916 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
985674193f
commit
fe1849bbbc
@ -1,3 +1,8 @@
|
|||||||
|
2001-04-14 Dekel Tsur <dekelts@tau.ac.il>
|
||||||
|
|
||||||
|
* src/exporter.C (Export): Give an error message when path to file
|
||||||
|
contains spaces.
|
||||||
|
|
||||||
2001-04-12 Dekel Tsur <dekelts@tau.ac.il>
|
2001-04-12 Dekel Tsur <dekelts@tau.ac.il>
|
||||||
|
|
||||||
* src/LaTeX.C (deplog): Always check that foundfile exists.
|
* src/LaTeX.C (deplog): Always check that foundfile exists.
|
||||||
|
@ -70,7 +70,11 @@ bool Exporter::Export(Buffer * buffer, string const & format,
|
|||||||
// LaTeX backend
|
// LaTeX backend
|
||||||
else if (backend_format == format)
|
else if (backend_format == format)
|
||||||
buffer->makeLaTeXFile(filename, string(), true);
|
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);
|
buffer->makeLaTeXFile(filename, buffer->filepath, false);
|
||||||
|
|
||||||
string outfile_base = (put_in_tempdir)
|
string outfile_base = (put_in_tempdir)
|
||||||
|
Loading…
Reference in New Issue
Block a user