Skip to content
Snippets Groups Projects
Commit 0eb92437 authored by Carl Philipp Klemm's avatar Carl Philipp Klemm
Browse files

use and instead of comma as author seperater when exporting biblatex entries

parent bd0090d0
Branches master
No related tags found
No related merge requests found
...@@ -356,7 +356,11 @@ char* document_meta_get_biblatex(const DocumentMeta* meta, size_t* length, const ...@@ -356,7 +356,11 @@ char* document_meta_get_biblatex(const DocumentMeta* meta, size_t* length, const
g_string_append(string, ",\n"); g_string_append(string, ",\n");
g_string_free(authorString, true); g_string_free(authorString, true);
g_string_append_printf(string, "\tauthor={%s},\n", meta->author); authorString = g_string_new(meta->author);
g_string_replace(authorString, ", ", " and ", 0);
g_string_append_printf(string, "\tauthor={%s},\n", authorString->str);
g_string_free(authorString, true);
if(meta->title) if(meta->title)
g_string_append_printf(string, "\ttitle={%s},\n", meta->title); g_string_append_printf(string, "\ttitle={%s},\n", meta->title);
if(meta->doi) if(meta->doi)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment