diff options
| author | 2020-10-10 21:47:34 +0200 | |
|---|---|---|
| committer | 2020-10-10 21:47:34 +0200 | |
| commit | f4924f0e8c26e373ddae8cb29f1f3935aaf00f4a (patch) | |
| tree | 5c818de3f18994327ce248c2582f9a583aeaf6c1 | |
| parent | Merge remote-tracking branch 'upstream/master' into doc-imp (diff) | |
Handle non dt fallback together with modules
| -rw-r--r-- | bot/exts/info/doc/_parsing.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/bot/exts/info/doc/_parsing.py b/bot/exts/info/doc/_parsing.py index 83e35e2b1..a79332716 100644 --- a/bot/exts/info/doc/_parsing.py +++ b/bot/exts/info/doc/_parsing.py @@ -296,12 +296,7 @@ def get_symbol_markdown(soup: BeautifulSoup, symbol_data: DocItem) -> str: signature = None # Modules, doc pages and labels don't point to description list tags but to tags like divs, # no special parsing can be done so we only try to include what's under them. - if symbol_data.group in {"module", "doc", "label"}: - description = _get_general_description(symbol_heading) - - elif symbol_heading.name != "dt": - # Use the general parsing for symbols that aren't modules, docs or labels and aren't dt tags, - # log info the tag can be looked at. + if symbol_data.group in {"module", "doc", "label"} or symbol_heading.name != "dt": description = _get_general_description(symbol_heading) elif symbol_data.group in _NO_SIGNATURE_GROUPS: |