From b3020389cf499b09724c4b6bfe5929980b6f24eb Mon Sep 17 00:00:00 2001
From: Ben Reynwar <ben@reynwar.net>
Date: Sun, 7 Apr 2013 21:00:28 -0700
Subject: docstrings: Include class documentation into SWIGed make function's
 docstrings.

---
 docs/doxygen/swig_doc.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'docs/doxygen/swig_doc.py')

diff --git a/docs/doxygen/swig_doc.py b/docs/doxygen/swig_doc.py
index f24608b3ee..2326f0e5bd 100644
--- a/docs/doxygen/swig_doc.py
+++ b/docs/doxygen/swig_doc.py
@@ -218,8 +218,10 @@ def make_block2_entry(di, block):
     descriptions = []
     # For new style blocks all the relevant documentation should be
     # associated with the 'make' method.
+    class_description = combine_descriptions(block)
     make_func = block.get_member('make', DoxyFunction)
-    description = combine_descriptions(make_func)
+    make_description = combine_descriptions(make_func)
+    description = class_description + "\n\n" + make_description
     # Associate the combined description with the class and
     # the make function.
     output = []
-- 
cgit v1.2.3