Skip to content
Merged
Show file tree
Hide file tree
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
14 changes: 7 additions & 7 deletions bibtexparser/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ def _build_parse_stack(
) -> List[Middleware]:
if parse_stack is not None and append_middleware is not None:
raise ValueError(
"Provided both parse_stack and append_middleware."
"Only one should be provided."
"(append_middleware should only be used with the default parse_stack,"
"Provided both parse_stack and append_middleware. "
"Only one should be provided. "
"(append_middleware should only be used with the default parse_stack, "
"i.e., when the passed parse_stack is None.)"
)

Expand Down Expand Up @@ -50,10 +50,10 @@ def _build_unparse_stack(
) -> List[Middleware]:
if unparse_stack is not None and prepend_middleware is not None:
raise ValueError(
"Provided both parse_stack and append_middleware."
"Only one should be provided."
"(prepend_middleware should only be used with the default parse_stack,"
"i.e., when the passed parse_stack is None.)"
"Provided both unparse_stack and prepend_middleware. "
"Only one should be provided. "
"(prepend_middleware should only be used with the default unparse_stack, "
"i.e., when the passed unparse_stack is None.)"
)

if unparse_stack is None:
Expand Down
4 changes: 2 additions & 2 deletions bibtexparser/middlewares/names.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ def _transform_field_value(self, name) -> List[NameParts]:
if not isinstance(name, list):
raise ValueError(
"Expected a list of strings, got {}. "
"Make sure to use `SeparateCoAuthors` middleware"
"before using `SplitNameParts` middleware".format(name)
"Make sure to use `SeparateCoAuthors` middleware "
"before using `SplitNameParts` middleware.".format(name)
)

return [parse_single_name_into_parts(n) for n in name]
Expand Down
Loading