diff --git a/CHANGELOG.md b/CHANGELOG.md index e4d9a67bdc3..8c4b1a89385 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,7 +30,7 @@ Note that this project **does not** adhere to [Semantic Versioning](http://semve - We fixed an issue where the "Import" -> "Library to import to" did not show the correct library name if two opened libraries had the same suffix [#9567](https://github.com/JabRef/jabref/issues/9567) - We fixed an issue where the rpm-Version of JabRef could not be properly uninstalled and reinstalled [#9558](https://github.com/JabRef/jabref/issues/9558), [#9603](https://github.com/JabRef/jabref/issues/9603) - We fixed an issue where the command line export using `--exportMatches` flag does not create an output bib file [#9581](https://github.com/JabRef/jabref/issues/9581) - +- We fixed an issue where custom field in the custom entry types could not be set to mulitline [#9609](https://github.com/JabRef/jabref/issues/9609) diff --git a/src/main/java/org/jabref/model/entry/field/IEEEField.java b/src/main/java/org/jabref/model/entry/field/IEEEField.java index 9050810629d..da0a47274b6 100644 --- a/src/main/java/org/jabref/model/entry/field/IEEEField.java +++ b/src/main/java/org/jabref/model/entry/field/IEEEField.java @@ -30,7 +30,7 @@ public enum IEEEField implements Field { this.properties = EnumSet.of(first, rest); } - public static Optional fromName(String name) { + public static Optional fromName(String name) { return Arrays.stream(IEEEField.values()) .filter(field -> field.getName().equalsIgnoreCase(name)) .findAny(); diff --git a/src/main/java/org/jabref/model/entry/field/UnknownField.java b/src/main/java/org/jabref/model/entry/field/UnknownField.java index a4765163c18..f1de44ce00a 100644 --- a/src/main/java/org/jabref/model/entry/field/UnknownField.java +++ b/src/main/java/org/jabref/model/entry/field/UnknownField.java @@ -7,14 +7,21 @@ public class UnknownField implements Field { private final String name; + private final Set properties; public UnknownField(String name) { this.name = name; + this.properties = EnumSet.noneOf(FieldProperty.class); + } + + public UnknownField(String name, FieldProperty first, FieldProperty... rest) { + this.name = name; + this.properties = EnumSet.of(first, rest); } @Override public Set getProperties() { - return EnumSet.noneOf(FieldProperty.class); + return properties; } @Override @@ -47,7 +54,7 @@ public int hashCode() { @Override public String toString() { return "UnknownField{" + - "name='" + name + '\'' + - '}'; + "name='" + name + '\'' + + '}'; } }