Skip to content

Commit

Permalink
handle <pre> within description - which should be ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
mahtin committed Jul 21, 2021
1 parent cde763a commit e02c380
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CloudFlare/api_decode_from_web.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
""" API extras for Cloudflare API"""

import sys
import datetime

from bs4 import BeautifulSoup, Comment
Expand Down Expand Up @@ -44,7 +45,7 @@ def do_section(section):
if isinstance(child, Comment):
# remove <!-- react-text ... -> parts
continue
cmd.append(child.strip())
cmd.append(str(child).strip())
if len(cmd) == 0:
continue
action = cmd[0]
Expand Down

0 comments on commit e02c380

Please sign in to comment.