Skip to content

Commit

Permalink
'Refactored by Sourcery'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sourcery AI committed Mar 13, 2022
1 parent 23b963c commit bdc0654
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pymarkdown/list_block_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ def __handle_list_with_leading_indent_loop(
# POGGER.debug("is_in_this_box>$<", is_in_this_box)
# POGGER.debug("can_promote_to_next_box>$<", can_promote_to_next_box)

if is_in_this_box or (not is_in_this_box and can_promote_to_next_box):
if is_in_this_box or can_promote_to_next_box:
acceptable_indent_stack_index = stack_index
return acceptable_indent_stack_index

Expand Down Expand Up @@ -461,9 +461,7 @@ def __handle_list_with_leading_indent(
indent_already_used = parser_state.token_stack[
acceptable_indent_stack_index
].matching_markdown_token.indent_level
forced_container_whitespace = extracted_whitespace[
0:indent_already_used
]
forced_container_whitespace = extracted_whitespace[:indent_already_used]
extracted_whitespace = extracted_whitespace[indent_already_used:]
adj_ws = adj_ws[indent_already_used:]
indent_already_processed = True
Expand Down

0 comments on commit bdc0654

Please sign in to comment.