mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 11:16:55 +00:00
* 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:
parent
e8aae76ec5
commit
a02431057e
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user