Skip to content

Commit 2057925

Browse files
kopporKrishna Kumar Parthasarathy
authored and
Krishna Kumar Parthasarathy
committed
Fix writing of example entry (JabRef#12940)
* Fix writing of example entry * Fix line break
1 parent a6428a8 commit 2057925

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/java/org/jabref/gui/maintable/MainTable.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,15 +587,17 @@ private void updatePlaceholder(VBox placeholderBox) {
587587

588588
private BibEntry addExampleEntry() {
589589
BibEntry exampleEntry = new BibEntry(StandardEntryType.Article)
590-
.withField(StandardField.AUTHOR, "Oliver Kopp and Carl Christian Snethlage and Christoph Schwentker").withField(StandardField.TITLE, "JabRef: BibTeX-based literature management software")
590+
.withField(StandardField.AUTHOR, "Oliver Kopp and Carl Christian Snethlage and Christoph Schwentker")
591+
.withField(StandardField.TITLE, "JabRef: BibTeX-based literature management software")
591592
.withField(StandardField.JOURNAL, "TUGboat")
592593
.withField(StandardField.VOLUME, "44")
593594
.withField(StandardField.NUMBER, "3")
594595
.withField(StandardField.PAGES, "441--447")
595596
.withField(StandardField.DOI, "10.47397/tb/44-3/tb138kopp-jabref")
596597
.withField(StandardField.ISSN, "0896-3207")
597598
.withField(StandardField.ISSUE, "138")
598-
.withField(StandardField.YEAR, "2023");
599+
.withField(StandardField.YEAR, "2023")
600+
.withChanged(true);
599601

600602
database.getDatabase().insertEntry(exampleEntry);
601603
return exampleEntry;

0 commit comments

Comments
 (0)