From 88a6d1a9181ab2ae7d462cc48c3332558746f4b3 Mon Sep 17 00:00:00 2001 From: Michael Schmitt Date: Thu, 28 Dec 2006 15:30:12 +0000 Subject: [PATCH] * lib/configure.py: fix typos ("Declear" => "Declare") git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16415 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/configure.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/configure.py b/lib/configure.py index 7d9c3b91c8..9fd1f0d833 100644 --- a/lib/configure.py +++ b/lib/configure.py @@ -516,7 +516,7 @@ def checkOtherEntries(): def processLayoutFile(file, bool_docbook, bool_linuxdoc): ''' process layout file and get a line of result - Declear line are like this: (article.layout, scrbook.layout, svjog.layout) + Declare lines look like this: (article.layout, scrbook.layout, svjog.layout) \DeclareLaTeXClass{article} \DeclareLaTeXClass[scrbook]{book (koma-script)} @@ -529,7 +529,7 @@ def processLayoutFile(file, bool_docbook, bool_linuxdoc): "svjog" "svjour" "article (Springer - svjour/jog)" "false" ''' classname = file.split(os.sep)[-1].split('.')[0] - # return ('LaTeX', '[a,b]', 'a', ',b,c', 'article') for \DeclearLaTeXClass[a,b,c]{article} + # return ('LaTeX', '[a,b]', 'a', ',b,c', 'article') for \DeclareLaTeXClass[a,b,c]{article} p = re.compile(r'\Declare(LaTeX|DocBook)Class\s*(\[([^,]*)(,.*)*\])*\s*{(.*)}') for line in open(file).readlines(): res = p.search(line) @@ -539,7 +539,7 @@ def processLayoutFile(file, bool_docbook, bool_linuxdoc): if opt == None: opt = classname return '"%s" "%s" "%s" "%s"\n' % (classname, opt, desc, avai) - print "Layout file without \DeclearXXClass line. " + print "Layout file without \DeclareXXClass line. " sys.exit(2) -- 2.39.2