Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions bibtexparser/splitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ def __init__(self, bibstr: str):
self._reset_block_status(current_char_index=0)

def _reset_block_status(self, current_char_index: int) -> None:
self._open_brackets = 0
self._is_quote_open = False
self._expected_next: Optional[List[str]] = None

# By default, we assume that an implicit comment is started
# at the beginning of the file and after each @{...} block.
# We then ignore empty implicit comments.
Expand Down Expand Up @@ -420,7 +416,6 @@ def _handle_entry(self, m, m_val) -> Union[Entry, ParsingFailedBlock]:
end_index=comma_mark.end(),
)
else:
self._open_brackets += 1
key = self.bibstr[m.end() + 1 : comma_mark.start()].strip()
fields, end_index, duplicate_keys = self._move_to_end_of_entry(comma_mark.end())

Expand Down
Loading