Cosmetics.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23304 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2008-02-28 04:05:38 +00:00
parent 49eebd7b08
commit a6f8f273e9

View File

@ -197,10 +197,10 @@ BaseClassList::addTextClass(string const & textclass, string const & path)
// look for the \DeclareXXXClass line
smatch sub;
if (regex_match(line, sub, reg)) {
// returns: whole string, classtype (not used here), first option, description
BOOST_ASSERT(sub.size()==4);
// returns: whole string, classtype (not used here), class name, description
BOOST_ASSERT(sub.size() == 4);
// now, create a TextClass with description containing path information
TextClass tmpl(textclass, sub.str(2)==""?textclass:sub.str(2),
TextClass tmpl(textclass, sub.str(2) == "" ? textclass : sub.str(2),
sub.str(3) + " <" + path + ">", true);
if (lyxerr.debugging(Debug::TCLASS))
tmpl.load(path);