diff --git a/src/main/java/net/sf/jabref/model/entry/CanonicalBibtexEntry.java b/src/main/java/net/sf/jabref/model/entry/CanonicalBibtexEntry.java index bb5d7b6551d..3aa653dd1e5 100644 --- a/src/main/java/net/sf/jabref/model/entry/CanonicalBibtexEntry.java +++ b/src/main/java/net/sf/jabref/model/entry/CanonicalBibtexEntry.java @@ -22,7 +22,8 @@ public static String getCanonicalRepresentation(BibtexEntry e) { // generate first line: type and bibtex key String citeKey = Strings.nullToEmpty(e.getCiteKey()); - sb.append(String.format("@%s{%s,%n", e.getType().getName().toLowerCase(Locale.US), citeKey)); + sb.append(String.format("@%s{%s,", e.getType().getName().toLowerCase(Locale.US), citeKey)); + sb.append("\n"); // we have to introduce a new Map as fields are stored case-sensitive in JabRef (see https://github.com/koppor/jabref/issues/45). Map mapFieldToValue = new HashMap<>();