Update formating_tools.py
This commit is contained in:
parent
d25a561065
commit
be71c9b4b7
1 changed files with 1 additions and 0 deletions
|
@ -10,6 +10,7 @@ def remove_trailing_newline(s):
|
|||
return s
|
||||
|
||||
def isolate_code_bloc(soup):
|
||||
"""Get codes bloc from the raw html of chatgpt website return a CodeBloc"""
|
||||
pre_tab = soup.find_all("pre")
|
||||
code_bloc = []
|
||||
for code in pre_tab:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue