enable = true;
break;
}
- string format =
- arg.empty() ? params().getDefaultOutputFormat() : to_utf8(arg);
+ string format = (arg.empty() || arg == "*") ?
+ params().getDefaultOutputFormat() : to_utf8(arg);
size_t pos = format.find(' ');
if (pos != string::npos)
format = format.substr(0, pos);
break;
case LFUN_BUFFER_EXPORT: {
- string const format =
- argument.empty() ? params().getDefaultOutputFormat() : argument;
+ string const format = (argument.empty() || argument == "*") ?
+ params().getDefaultOutputFormat() : argument;
ExportStatus const status = doExport(format, false);
dr.setError(status != ExportSuccess);
if (status != ExportSuccess)
want to start from and for the command that you want to
apply to this format. Internally the control is then passed
to #LFUN_BUFFER_EXPORT_CUSTOM.\n
- If absent, the default output format of the document is
- used.
+ If absent or *, then the default output format of the
+ document is used.
<DEST> If present, this argument provides the export destination
filename. Its containing folder will also be the destination
folder, where all the needed external files will be copied.
else
target_dir = doc_buffer->fileName().onlyPath();
- string const format = argument.empty() ?
+ string const format = (argument.empty() || argument == "*") ?
doc_buffer->params().getDefaultOutputFormat() : argument;
if ((dest.empty() && doc_buffer->isUnnamed())