Skip to content

Commit

Permalink
fix jabref format of month
Browse files Browse the repository at this point in the history
  • Loading branch information
sfo committed Sep 9, 2019
1 parent e3f1526 commit 77c25ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ private void addPubDate(Map<Field, String> fields, PubDate pubDate) {
if (pubDate.getMonth() != null) {
Optional<Month> month = Month.parse(pubDate.getMonth());
if (month.isPresent()) {
fields.put(StandardField.MONTH, month.get().getShortName());
fields.put(StandardField.MONTH, month.get().getJabRefFormat());
}
} else if (pubDate.getSeason() != null) {
fields.put(new UnknownField("season"), pubDate.getSeason());
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/jabref/model/entry/Month.java
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public String getShortName() {
* @return Month in JabRef format
*/
public String getJabRefFormat() {
return String.format("#%s#", shortName);
return String.format("%s", shortName);
}

/**
Expand Down

0 comments on commit 77c25ca

Please sign in to comment.