Commit 6730764d authored by David Moxey's avatar David Moxey

Add configuration option to join strings to avoid ugly output

parent 530ce2a5
...@@ -15,6 +15,7 @@ module Jekyll ...@@ -15,6 +15,7 @@ module Jekyll
'bibtex_filters' => [ :latex ], 'bibtex_filters' => [ :latex ],
'replace_strings' => true, 'replace_strings' => true,
'join_strings' => true,
'details_dir' => 'bibliography', 'details_dir' => 'bibliography',
'details_layout' => 'bibtex.html', 'details_layout' => 'bibtex.html',
......
...@@ -83,6 +83,7 @@ module Jekyll ...@@ -83,6 +83,7 @@ module Jekyll
bibtex_options bibtex_options
) )
@bibliography.replace_strings if replace_strings? @bibliography.replace_strings if replace_strings?
@bibliography.join if join_strings?
end end
@bibliography @bibliography
...@@ -123,6 +124,10 @@ module Jekyll ...@@ -123,6 +124,10 @@ module Jekyll
config['replace_strings'] config['replace_strings']
end end
def join_strings?
config['join_strings']
end
def cited_only? def cited_only?
!!@cited !!@cited
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment