Skip to content

Commit

Permalink
Fixed entry not printing file field when exporting
Browse files Browse the repository at this point in the history
  • Loading branch information
cgxeiji committed Nov 4, 2018
1 parent 7e82a15 commit 757319d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions entry.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ func (e *Entry) Bib() string {
if value, ok := e.Optional["abstract"]; ok {
bib = fmt.Sprintf("%s %s = {%s},\n", bib, "abstract", value)
}
if file := e.File; file != "" {
bib = fmt.Sprintf("%s %s = {%s},\n", bib, "file", file)
}

bib = fmt.Sprintf("%s\n}", bib[:len(bib)-2])
return bib
Expand Down

0 comments on commit 757319d

Please sign in to comment.