diff --git a/bibtexparser/splitter.py b/bibtexparser/splitter.py index 42bf6cb..7aff629 100644 --- a/bibtexparser/splitter.py +++ b/bibtexparser/splitter.py @@ -285,22 +285,17 @@ def _move_to_end_of_entry(self, first_key_start: int) -> tuple[list[Field], int, end_index=after_field_mark.start(), ) - def split(self, library: Library | None = None) -> Library: - """Split the bibtex-string into blocks and add them to the library. + def split(self) -> Library: + """Split the bibtex-string into blocks and return them as a new library. - Args: - library: The library to add the blocks to. If None, a new library is created. Returns: - The library with the added blocks. + A new library containing the split blocks. """ self._markiter = re.finditer( r"(?