mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-29 05:01:49 +00:00
Whitespace.
This commit is contained in:
parent
83fded8fea
commit
ff2df8cf37
@ -393,16 +393,16 @@ RetVal writeExternal(InsetExternalParams const & params,
|
|||||||
if (!dryrun && !external_in_tmpdir) {
|
if (!dryrun && !external_in_tmpdir) {
|
||||||
if (!isValidLaTeXFileName(absname)) {
|
if (!isValidLaTeXFileName(absname)) {
|
||||||
lyx::frontend::Alert::warning(_("Invalid filename"),
|
lyx::frontend::Alert::warning(_("Invalid filename"),
|
||||||
_("The following filename will cause troubles "
|
_("The following filename will cause troubles "
|
||||||
"when running the exported file through LaTeX: ") +
|
"when running the exported file through LaTeX: ") +
|
||||||
from_utf8(absname));
|
from_utf8(absname));
|
||||||
}
|
}
|
||||||
if (!isValidDVIFileName(absname)) {
|
if (!isValidDVIFileName(absname)) {
|
||||||
lyx::frontend::Alert::warning(_("Problematic filename for DVI"),
|
lyx::frontend::Alert::warning(_("Problematic filename for DVI"),
|
||||||
_("The following filename can cause troubles "
|
_("The following filename can cause troubles "
|
||||||
"when running the exported file through LaTeX "
|
"when running the exported file through LaTeX "
|
||||||
"and opening the resulting DVI: ") +
|
"and opening the resulting DVI: ") +
|
||||||
from_utf8(absname), true);
|
from_utf8(absname), true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -806,10 +806,8 @@ void InsetInclude::latex(otexstream & os, OutputParams const & runparams) const
|
|||||||
ErrorList const & el = tmp->errorList("Export");
|
ErrorList const & el = tmp->errorList("Export");
|
||||||
if (!el.empty())
|
if (!el.empty())
|
||||||
msg = bformat(from_ascii("%1$s\n\n%2$s\n\n%3$s"),
|
msg = bformat(from_ascii("%1$s\n\n%2$s\n\n%3$s"),
|
||||||
msg, el.begin()->error,
|
msg, el.begin()->error, el.begin()->description);
|
||||||
el.begin()->description);
|
throw ExceptionMessage(ErrorException, _("Error: "), msg);
|
||||||
throw ExceptionMessage(ErrorException, _("Error: "),
|
|
||||||
msg);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
runparams.encoding = oldEnc;
|
runparams.encoding = oldEnc;
|
||||||
@ -834,10 +832,8 @@ void InsetInclude::latex(otexstream & os, OutputParams const & runparams) const
|
|||||||
included_file.displayName());
|
included_file.displayName());
|
||||||
if (!el.empty())
|
if (!el.empty())
|
||||||
msg = bformat(from_ascii("%1$s\n\n%2$s\n\n%3$s"),
|
msg = bformat(from_ascii("%1$s\n\n%2$s\n\n%3$s"),
|
||||||
msg, el.begin()->error,
|
msg, el.begin()->error, el.begin()->description);
|
||||||
el.begin()->description);
|
throw ExceptionMessage(ErrorException, _("Error: "), msg);
|
||||||
throw ExceptionMessage(ErrorException, _("Error: "),
|
|
||||||
msg);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user