* lib/configure.py: fix unwanted script abort (identify LinuxDoc layout file)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17090 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Michael Schmitt 2007-02-07 17:38:11 +00:00
parent e8aae76ec5
commit a02431057e

View File

@ -543,7 +543,7 @@ def processLayoutFile(file, bool_docbook, bool_linuxdoc):
'''
classname = file.split(os.sep)[-1].split('.')[0]
# return ('LaTeX', '[a,b]', 'a', ',b,c', 'article') for \DeclareLaTeXClass[a,b,c]{article}
p = re.compile(r'\Declare(LaTeX|DocBook)Class\s*(\[([^,]*)(,.*)*\])*\s*{(.*)}')
p = re.compile(r'\Declare(LaTeX|DocBook|LinuxDoc)Class\s*(\[([^,]*)(,.*)*\])*\s*{(.*)}')
for line in open(file).readlines():
res = p.search(line)
if res != None: