From 24ad64c4066bbb0efd007e64d4f4d072cafdecba Mon Sep 17 00:00:00 2001 From: Scott Kostyshak Date: Tue, 7 Mar 2017 03:09:42 -0500 Subject: [PATCH] Implement '*' in "buffer-export " 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. --- src/Buffer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 60dcc51ce3..d01336ee9b 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -4231,6 +4231,8 @@ Buffer::ExportStatus Buffer::doExport(string const & target, bool put_in_tempdir if (pos != string::npos) { dest_filename = target.substr(pos + 1, target.length() - pos - 1); format = target.substr(0, pos); + if (format == "*") + format = params().getDefaultOutputFormat(); runparams.export_folder = FileName(dest_filename).onlyPath().realPath(); FileName(dest_filename).onlyPath().createPath(); LYXERR(Debug::FILES, "format=" << format << ", dest_filename=" << dest_filename << ", export_folder=" << runparams.export_folder); -- 2.39.2