"\\lyxadded and \\lyxdeleted in the LaTeX preamble."));
}
}
- // read manifest after header
- embeddedFiles().readManifest(lex, errorList);
// read main text
bool const res = text().read(*this, lex, errorList);
// make a backup if the file already exists
if (lyxrc.make_backup && fs::exists(encodedFilename)) {
backupName = FileName(absFileName() + '~');
- if (!lyxrc.backupdir_path.empty())
+ if (!lyxrc.backupdir_path.empty()) {
+ string const mangledName =
+ subst(subst(os::internal_path(
+ backupName.absFilename()), '/', '!'), ':', '!');
backupName = FileName(addName(lyxrc.backupdir_path,
- subst(os::internal_path(backupName.absFilename()), '/', '!')));
-
+ mangledName));
+ }
try {
fs::copy_file(encodedFilename, backupName.toFilesystemEncoding(), false);
madeBackup = true;
params().writeFile(ofs);
ofs << "\\end_header\n";
- // write the manifest after header
- ofs << "\n\\begin_manifest\n";
- pimpl_->embedded_files.update();
- embeddedFiles().writeManifest(ofs);
- ofs << "\\end_manifest\n";
-
// write the text
ofs << "\n\\begin_body\n";
text().write(*this, ofs);
}
-void Buffer::embeddingChanged() const
-{
- if (gui_)
- gui_->embeddingChanged();
-}
-
-
void Buffer::errors(std::string const & err) const
{
if (gui_)