--- a/doc/gendoc.py Sun Sep 27 23:34:37 2015 +0900 +++ b/doc/gendoc.py Sat Sep 26 12:06:30 2015 +0900 @@ -138,7 +138,7 @@ if sectionfunc: ui.write(sectionfunc(sec)) if callable(doc): - doc = doc() + doc = doc(ui) ui.write(doc) ui.write("\n")