mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
de-indent
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19947 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
795d4ba423
commit
bf728ca386
@ -92,28 +92,28 @@ bool ModuleList::load() {
|
||||
default:
|
||||
string const modName = lex.getString();
|
||||
LYXERR(Debug::TCLASS) << "Module name: " << modName << endl;
|
||||
if (lex.next()) {
|
||||
string const fname = lex.getString();
|
||||
LYXERR(Debug::TCLASS) << "Filename: " << fname << endl;
|
||||
if (lex.next()) {
|
||||
string const desc = lex.getString();
|
||||
LYXERR(Debug::TCLASS) << "Description: " << desc << endl;
|
||||
//FIXME Add packages
|
||||
if (lex.next()) {
|
||||
string packages = lex.getString();
|
||||
LYXERR(Debug::TCLASS) << "Packages: " << packages << endl;
|
||||
vector<string> pkgs;
|
||||
while (!packages.empty()) {
|
||||
string p;
|
||||
packages = support::split(packages, p, ',');
|
||||
pkgs.push_back(p);
|
||||
}
|
||||
// This code is run when we have
|
||||
// modName, fname, desc, and pkgs
|
||||
addLayoutModule(modName, fname, desc, pkgs);
|
||||
}
|
||||
}
|
||||
if (!lex.next())
|
||||
break;
|
||||
string const fname = lex.getString();
|
||||
LYXERR(Debug::TCLASS) << "Filename: " << fname << endl;
|
||||
if (!lex.next())
|
||||
break;
|
||||
string const desc = lex.getString();
|
||||
LYXERR(Debug::TCLASS) << "Description: " << desc << endl;
|
||||
//FIXME Add packages
|
||||
if (!lex.next())
|
||||
break;
|
||||
string packages = lex.getString();
|
||||
LYXERR(Debug::TCLASS) << "Packages: " << packages << endl;
|
||||
vector<string> pkgs;
|
||||
while (!packages.empty()) {
|
||||
string p;
|
||||
packages = support::split(packages, p, ',');
|
||||
pkgs.push_back(p);
|
||||
}
|
||||
// This code is run when we have
|
||||
// modName, fname, desc, and pkgs
|
||||
addLayoutModule(modName, fname, desc, pkgs);
|
||||
} // end switch
|
||||
} //end while
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user