Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit e02c380

Browse files
committed
handle <pre> within description - which should be ignored
1 parent cde763a commit e02c380

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CloudFlare/api_decode_from_web.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
""" API extras for Cloudflare API"""
22

3+
import sys
34
import datetime
45

56
from bs4 import BeautifulSoup, Comment
@@ -44,7 +45,7 @@ def do_section(section):
4445
if isinstance(child, Comment):
4546
# remove <!-- react-text ... -> parts
4647
continue
47-
cmd.append(child.strip())
48+
cmd.append(str(child).strip())
4849
if len(cmd) == 0:
4950
continue
5051
action = cmd[0]

0 commit comments

Comments
 (0)