From ec7cbd2318390ec259edcbd4e0d0f26f18577d24 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Mon, 18 Jan 2010 00:38:25 +0100 Subject: [PATCH] Only output one status for all module code pages. --- sphinx/ext/viewcode.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sphinx/ext/viewcode.py b/sphinx/ext/viewcode.py index 11ab4b116..ac2a957fe 100644 --- a/sphinx/ext/viewcode.py +++ b/sphinx/ext/viewcode.py @@ -84,6 +84,9 @@ def collect_pages(app): modnames = set(env._viewcode_modules) + app.builder.info(' (%d module code pages)' % + len(env._viewcode_modules), nonl=1) + for modname, (code, tags, used) in env._viewcode_modules.iteritems(): # construct a page name for the highlighted source pagename = '_modules/' + modname.replace('.', '/') @@ -126,7 +129,6 @@ def collect_pages(app): 'body': _('

Source code for %s

') % modname + \ '\n'.join(lines) } - app.builder.info(' '+pagename, nonl=1) yield (pagename, context, 'page.html') if not modnames: