aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2024-07-15 18:23:20 +0300
committerJohn MacFarlane <[email protected]>2024-07-15 18:23:20 +0300
commit8613aa39e8b5b8282f30b9fd48b04ec2595ec8eb (patch)
treebfbe7210e6f88db094aa61b25c6a76c6686c4a62 /src/Text
parent790abcf4147fa2a097b1f29c845182675d90ccc3 (diff)
BibTeX writer: ensure that "literal" names are enclosed in braces.
Closes #9987.
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Citeproc/BibTeX.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Citeproc/BibTeX.hs b/src/Text/Pandoc/Citeproc/BibTeX.hs
index 3e8f99e50..bf4a75cff 100644
--- a/src/Text/Pandoc/Citeproc/BibTeX.hs
+++ b/src/Text/Pandoc/Citeproc/BibTeX.hs
@@ -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