mercurial/help.py
changeset 26196 3a4620ad4490
parent 25881 9de443515f1d
child 26238 69da16b366ad
equal deleted inserted replaced
26195:5a3338e0faf7 26196:3a4620ad4490
   177 def addtopichook(topic, rewriter):
   177 def addtopichook(topic, rewriter):
   178     helphooks.setdefault(topic, []).append(rewriter)
   178     helphooks.setdefault(topic, []).append(rewriter)
   179 
   179 
   180 def makeitemsdoc(topic, doc, marker, items, dedent=False):
   180 def makeitemsdoc(topic, doc, marker, items, dedent=False):
   181     """Extract docstring from the items key to function mapping, build a
   181     """Extract docstring from the items key to function mapping, build a
   182     .single documentation block and use it to overwrite the marker in doc
   182     single documentation block and use it to overwrite the marker in doc.
   183     """
   183     """
   184     entries = []
   184     entries = []
   185     for name in sorted(items):
   185     for name in sorted(items):
   186         text = (items[name].__doc__ or '').rstrip()
   186         text = (items[name].__doc__ or '').rstrip()
   187         if not text:
   187         if not text: