mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 18:24:48 +00:00
Cosmetics.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23304 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
49eebd7b08
commit
a6f8f273e9
@ -197,10 +197,10 @@ BaseClassList::addTextClass(string const & textclass, string const & path)
|
|||||||
// look for the \DeclareXXXClass line
|
// look for the \DeclareXXXClass line
|
||||||
smatch sub;
|
smatch sub;
|
||||||
if (regex_match(line, sub, reg)) {
|
if (regex_match(line, sub, reg)) {
|
||||||
// returns: whole string, classtype (not used here), first option, description
|
// returns: whole string, classtype (not used here), class name, description
|
||||||
BOOST_ASSERT(sub.size()==4);
|
BOOST_ASSERT(sub.size() == 4);
|
||||||
// now, create a TextClass with description containing path information
|
// 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);
|
sub.str(3) + " <" + path + ">", true);
|
||||||
if (lyxerr.debugging(Debug::TCLASS))
|
if (lyxerr.debugging(Debug::TCLASS))
|
||||||
tmpl.load(path);
|
tmpl.load(path);
|
||||||
|
Loading…
Reference in New Issue
Block a user