From 6730764dcf5cea5b43b569a965ce6ea477648e79 Mon Sep 17 00:00:00 2001 From: David Moxey Date: Sun, 13 Apr 2014 16:32:57 +0100 Subject: [PATCH] Add configuration option to join strings to avoid ugly output --- lib/jekyll/scholar/defaults.rb | 1 + lib/jekyll/scholar/utilities.rb | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/lib/jekyll/scholar/defaults.rb b/lib/jekyll/scholar/defaults.rb index 768ffd4..dd7ca59 100644 --- a/lib/jekyll/scholar/defaults.rb +++ b/lib/jekyll/scholar/defaults.rb @@ -15,6 +15,7 @@ module Jekyll 'bibtex_filters' => [ :latex ], 'replace_strings' => true, + 'join_strings' => true, 'details_dir' => 'bibliography', 'details_layout' => 'bibtex.html', diff --git a/lib/jekyll/scholar/utilities.rb b/lib/jekyll/scholar/utilities.rb index 7ac75d5..fe2c584 100644 --- a/lib/jekyll/scholar/utilities.rb +++ b/lib/jekyll/scholar/utilities.rb @@ -83,6 +83,7 @@ module Jekyll bibtex_options ) @bibliography.replace_strings if replace_strings? + @bibliography.join if join_strings? end @bibliography @@ -123,6 +124,10 @@ module Jekyll config['replace_strings'] end + def join_strings? + config['join_strings'] + end + def cited_only? !!@cited end -- GitLab