File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -915,7 +915,7 @@ def indent_quoted_content(soup: Any, padding_char: str) -> int:
915915 blockquote_list = soup .find_all ("blockquote" )
916916 bq_len = len (blockquote_list )
917917 for tag in blockquote_list :
918- child_list = tag .findChildren (recursive = False )
918+ child_list = tag .find_all (recursive = False )
919919 child_block = tag .find_all ("blockquote" )
920920 actual_padding = f"{ padding_char } " * pad_count
921921 if len (child_list ) == 1 :
@@ -937,8 +937,8 @@ def indent_quoted_content(soup: Any, padding_char: str) -> int:
937937 new_tag .string = actual_padding
938938 # If the quoted message is multi-line message
939939 # we deconstruct it and pad it at break-points (<br/>)
940- for br in child .findAll ("br" ):
941- next_s = br .nextSibling
940+ for br in child .find_all ("br" ):
941+ next_s = br .next_sibling
942942 text = str (next_s .string ).strip ()
943943 if text :
944944 insert_tag = soup .new_tag ("p" )
You can’t perform that action at this time.
0 commit comments