mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Minor code reorganization.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34526 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
25e960b8fd
commit
434af7df28
@ -1139,7 +1139,11 @@ def processModuleFile(file, bool_docbook):
|
||||
if res != None:
|
||||
catgy = res.group(1)
|
||||
continue
|
||||
if modname != "":
|
||||
|
||||
if modname == "":
|
||||
logger.warning("Module file without \DeclareLyXModule line. ")
|
||||
return ""
|
||||
|
||||
if pkgs != "":
|
||||
# this module has some latex dependencies:
|
||||
# append the dependencies to chkmodules.tex,
|
||||
@ -1157,8 +1161,7 @@ def processModuleFile(file, bool_docbook):
|
||||
cm.write(line + '\n')
|
||||
cm.close()
|
||||
return '"%s" "%s" "%s" "%s" "%s" "%s" "%s"\n' % (modname, filename, desc, pkgs, req, excl, catgy)
|
||||
logger.warning("Module file without \DeclareLyXModule line. ")
|
||||
return ""
|
||||
|
||||
|
||||
|
||||
def checkTeXAllowSpaces():
|
||||
|
Loading…
Reference in New Issue
Block a user