Double Thinko :-/

This commit is contained in:
Juergen Spitzmueller 2012-10-09 11:14:13 +02:00
parent c3001fba5c
commit 7c8f4d57a7

View File

@ -1059,11 +1059,11 @@ def processLayoutFile(file, bool_docbook):
prereq_docbook = {'true':'', 'false':'docbook'}[bool_docbook] prereq_docbook = {'true':'', 'false':'docbook'}[bool_docbook]
prereq = {'LaTeX':prereq_latex, 'DocBook':prereq_docbook}[classtype] prereq = {'LaTeX':prereq_latex, 'DocBook':prereq_docbook}[classtype]
classdeclaration = '"%s" "%s" "%s" "%s" "%s"' % (classname, opt, desc, avai, prereq) classdeclaration = '"%s" "%s" "%s" "%s" "%s"' % (classname, opt, desc, avai, prereq)
if categorydeclaration != "": if categorydeclaration != '""':
return classdeclaration + " " + categorydeclaration return classdeclaration + " " + categorydeclaration
if qres != None: if qres != None:
categorydeclaration = '"%s"' % (qres.groups()[0]) categorydeclaration = '"%s"' % (qres.groups()[0])
if classdeclaration != '""': if classdeclaration != "":
return classdeclaration + " " + categorydeclaration return classdeclaration + " " + categorydeclaration
if classdeclaration != "": if classdeclaration != "":
return classdeclaration + " " + categorydeclaration return classdeclaration + " " + categorydeclaration