mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
Implement '*' in "buffer-export <FORMAT> <DEST>"
For the variant of buffer-export that allows a format and a
filename, the substitution must be done after the argument is split.
Related to 494ce664
.
This commit is contained in:
parent
2136887ea2
commit
24ad64c406
@ -4231,6 +4231,8 @@ Buffer::ExportStatus Buffer::doExport(string const & target, bool put_in_tempdir
|
|||||||
if (pos != string::npos) {
|
if (pos != string::npos) {
|
||||||
dest_filename = target.substr(pos + 1, target.length() - pos - 1);
|
dest_filename = target.substr(pos + 1, target.length() - pos - 1);
|
||||||
format = target.substr(0, pos);
|
format = target.substr(0, pos);
|
||||||
|
if (format == "*")
|
||||||
|
format = params().getDefaultOutputFormat();
|
||||||
runparams.export_folder = FileName(dest_filename).onlyPath().realPath();
|
runparams.export_folder = FileName(dest_filename).onlyPath().realPath();
|
||||||
FileName(dest_filename).onlyPath().createPath();
|
FileName(dest_filename).onlyPath().createPath();
|
||||||
LYXERR(Debug::FILES, "format=" << format << ", dest_filename=" << dest_filename << ", export_folder=" << runparams.export_folder);
|
LYXERR(Debug::FILES, "format=" << format << ", dest_filename=" << dest_filename << ", export_folder=" << runparams.export_folder);
|
||||||
|
Loading…
Reference in New Issue
Block a user