equal
deleted
inserted
replaced
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: |