Skip to content

Commit

Permalink
BibTeX writer: ensure that "literal" names are enclosed in braces.
Browse files Browse the repository at this point in the history
Closes #9987.
  • Loading branch information
jgm committed Jul 15, 2024
1 parent 790abcf commit 8613aa3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Text/Pandoc/Citeproc/BibTeX.hs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ writeBibtexString opts variant mblang ref =

renderName name =
case nameLiteral name of
Just t -> B.text t
Just t -> B.spanWith ("",[],[]) $ B.text t
Nothing -> spacedMaybes
[ nameNonDroppingParticle name
, nameFamily name
Expand Down
10 changes: 10 additions & 0 deletions test/command/9987.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
```
% pandoc -f bibtex -t bibtex
@misc{agency,
author = {{European Environment Agency}},
}
^D
@misc{agency,
author = {{European Environment Agency}}
}
```

0 comments on commit 8613aa3

Please sign in to comment.