Skip to content

Prevent custom entry types with spaces #14088

@koppor

Description

@koppor

BibTeX has problems when the entry type contains spaces. JabRef should not allow custom entry types to contain spaces.

Adapt the validator:

entryTypeValidator = new FunctionBasedValidator<>(
entryTypeToAdd,
StringUtil::isNotBlank,
ValidationMessage.error(Localization.lang("Entry type cannot be empty. Please enter a name.")));

Triggered by this post.
https://discourse.jabref.org/t/export-list-of-import-errors/3649/10


Background: one can customize entry types at

Image

Metadata

Metadata

Assignees

Type

No fields configured for task.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions