fix citation bugs

This commit is contained in:
Christopher Olah
2017-01-10 15:23:45 -08:00
parent 5f837d38b4
commit 20efb33c32
+3
View File
@@ -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;
});