From a8fd9ff8062152ccdcec7d63f2d5075f29ee2429 Mon Sep 17 00:00:00 2001 From: Ullrich Koethe Date: Wed, 21 Dec 2011 16:31:56 +0100 Subject: [PATCH] adapted regular expressions for doxygen 1.7.6.1 --- docsrc/makeFunctionIndex.py | 4 ++-- docsrc/post.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docsrc/makeFunctionIndex.py b/docsrc/makeFunctionIndex.py index 55e74bc..06300e2 100644 --- a/docsrc/makeFunctionIndex.py +++ b/docsrc/makeFunctionIndex.py @@ -119,8 +119,8 @@ def generateFunctionIndex(functionList): text = open(path + "/namespaces.html").read() if text.find('') > -1: # up to doxygen 1.7.1 header = text[:text.find('')+5] - else: # for doxygen 1.7.4 - header = text[:re.search(r'
[^<]*
\s*\s*\n
',text).end()] + else: # for doxygen 1.7.4 to 1.7.6.1 + header = text[:re.search(r'
[^<]*
\s*
\s*(?:)?\n
',text).end()] footer = re.search(r'(?s)(.*)', text).group(1) text = re.sub(r'Namespace List', r'Function Index', header) diff --git a/docsrc/post.py b/docsrc/post.py index a8836d5..fc51f8d 100644 --- a/docsrc/post.py +++ b/docsrc/post.py @@ -51,13 +51,13 @@
''') -# tested with doxygen 1.7.5.1 +# tested with doxygen 1.7.5.1 and 1.7.6.1 mainHeading4 = re.compile(r'''(
) (
)
(.*)
(.*)() -
+(?:)?
''') mainHeadingReplacement = '''\\1 @@ -149,7 +149,7 @@ def processFile(fileName): f.close() files = glob.glob(path + '/*.html') # use given path to files -#files = glob.glob('../doc/vigra/index.html') +#files = glob.glob(path + '/index.html') for file in files: processFile(file) -- 1.8.1.6