We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e47690 commit 4f143aeCopy full SHA for 4f143ae
package.py
@@ -17,6 +17,11 @@
17
soup = BeautifulSoup(file_path.read_text(encoding="UTF8"), 'lxml')
18
contents = soup.find('div', class_="body").div
19
20
+ # Handle PEP 0
21
+ if int(file_path.stem[-4:]) == 0:
22
+ [tag.p.unwrap() if tag.p else tag for tag in contents.findAll("th")]
23
+ [tag.p.unwrap() if tag.p else tag for tag in contents.findAll("td")]
24
+
25
# Removes <p> tags from list item elements
26
for tag in contents.findAll("li"):
27
try:
0 commit comments