enable = true;
break;
}
- string format = (arg.empty() || arg == "*") ?
+ string format = (arg.empty() || arg == "default") ?
params().getDefaultOutputFormat() : to_utf8(arg);
size_t pos = format.find(' ');
if (pos != string::npos)
break;
case LFUN_BUFFER_EXPORT: {
- string const format = (argument.empty() || argument == "*") ?
+ string const format = (argument.empty() || argument == "default") ?
params().getDefaultOutputFormat() : argument;
ExportStatus const status = doExport(format, false);
dr.setError(status != ExportSuccess);
if (pos != string::npos) {
dest_filename = target.substr(pos + 1, target.length() - pos - 1);
format = target.substr(0, pos);
- if (format == "*")
+ if (format == "default")
format = params().getDefaultOutputFormat();
runparams.export_folder = FileName(dest_filename).onlyPath().realPath();
FileName(dest_filename).onlyPath().createPath();
" Tools->Preferences->File Handling->File Formats->Short Name\n"
" to see which parameter (which differs from the format name\n"
" in the File->Export menu) should be passed. To export to\n"
- " the document's default output format, use '*'.\n"
+ " the document's default output format, use 'default'.\n"
" Note that the order of -e and -x switches matters.\n"
"\t-E [--export-to] fmt filename\n"
" where fmt is the export format of choice (see --export),\n"
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 or *, then the default output format of the
+ If absent or "default", 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
else
target_dir = doc_buffer->fileName().onlyPath();
- string const format = (argument.empty() || argument == "*") ?
+ string const format = (argument.empty() || argument == "default") ?
doc_buffer->params().getDefaultOutputFormat() : argument;
if ((dest.empty() && doc_buffer->isUnnamed())