diff options
| -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: |