Skip to content

Commit

Permalink
Make canonical format always passing
Browse files Browse the repository at this point in the history
  • Loading branch information
simonharrer committed Dec 13, 2015
1 parent e2fe0fd commit e98c7db
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, String> mapFieldToValue = new HashMap<>();
Expand Down

0 comments on commit e98c7db

Please sign in to comment.