diff options
| author | 2019-11-02 17:37:42 +0100 | |
|---|---|---|
| committer | 2019-11-02 17:37:42 +0100 | |
| commit | 82e1f3764ba0d102ede007ba6352406cfe3fb82a (patch) | |
| tree | a37f59238f7338547910895dfb70d57542dcb187 | |
| parent | Do not cut off description in code blocks (diff) | |
Get symbol description by searching for a dd tag instead of traversing the siblings
| -rw-r--r-- | bot/cogs/doc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/doc.py b/bot/cogs/doc.py index 4a095fa51..96f737c03 100644 --- a/bot/cogs/doc.py +++ b/bot/cogs/doc.py @@ -260,7 +260,7 @@ class Doc(commands.Cog): if tag not in UNWANTED_SIGNATURE_SYMBOLS: signature_buffer.append(tag.replace('\\', '')) signature = ''.join(signature_buffer) - description = str(symbol_heading.next_sibling.next_sibling).replace('¶', '') + description = str(symbol_heading.find_next_sibling("dd")).replace('¶', '') return signature, description |