From 20efb33c327754b527a1c258e4876cc18fe242c2 Mon Sep 17 00:00:00 2001 From: Christopher Olah Date: Tue, 10 Jan 2017 15:23:45 -0800 Subject: [PATCH] fix citation bugs --- components/bibliography.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/bibliography.js b/components/bibliography.js index 64167fd..d60e592 100644 --- a/components/bibliography.js +++ b/components/bibliography.js @@ -10,6 +10,9 @@ export default function(dom, data) { let parsed = bibtexParse.toJSON(rawBib); if(parsed) { parsed.forEach(e => { + for (var k in e.entryTags){ + e.entryTags[k] = e.entryTags[k].replace(/[\t\n ]+/g, " "); + } bibliography[e.citationKey] = e.entryTags; bibliography[e.citationKey].type = e.entryType; });