Ahh, thanks.
There are other of these around. I think this one was pretty much copied from somewhere.
rh [EMAIL PROTECTED] wrote:
Author: younes Date: Fri Aug 31 15:46:19 2007 New Revision: 19947 URL: http://www.lyx.org/trac/changeset/19947 Log: de-indent Modified: lyx-devel/trunk/src/ModuleList.cpp Modified: lyx-devel/trunk/src/ModuleList.cpp URL: http://www.lyx.org/trac/file/lyx-devel/trunk/src/ModuleList.cpp?rev=19947 ============================================================================== --- lyx-devel/trunk/src/ModuleList.cpp (original) +++ lyx-devel/trunk/src/ModuleList.cpp Fri Aug 31 15:46:19 2007 @@ -92,28 +92,28 @@ 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 _______________________________________________ Cvslog mailing list [EMAIL PROTECTED] http://www.lyx.org/mailman/listinfo/cvslog
-- ================================================================== Richard G Heck, Jr Professor of Philosophy Brown University http://frege.brown.edu/heck/ ================================================================== Get my public key from http://sks.keyserver.penguin.de Hash: 0x1DE91F1E66FFBDEC Learn how to sign your email using Thunderbird and GnuPG at: http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto