doc/gendoc.py
changeset 26413 e0c572d4d112
parent 26412 7e8e3c0920a6
child 27330 6fbf1159a85a
equal deleted inserted replaced
26412:7e8e3c0920a6 26413:e0c572d4d112
   136             ui.write(".. _%s:\n" % name)
   136             ui.write(".. _%s:\n" % name)
   137         ui.write("\n")
   137         ui.write("\n")
   138         if sectionfunc:
   138         if sectionfunc:
   139             ui.write(sectionfunc(sec))
   139             ui.write(sectionfunc(sec))
   140         if callable(doc):
   140         if callable(doc):
   141             doc = doc()
   141             doc = doc(ui)
   142         ui.write(doc)
   142         ui.write(doc)
   143         ui.write("\n")
   143         ui.write("\n")
   144 
   144 
   145 def commandprinter(ui, cmdtable, sectionfunc):
   145 def commandprinter(ui, cmdtable, sectionfunc):
   146     h = {}
   146     h = {}