diff --git a/_plugins/autocrossref.rb b/_plugins/autocrossref.rb index c5058c5d..fcf645b8 100644 --- a/_plugins/autocrossref.rb +++ b/_plugins/autocrossref.rb @@ -45,9 +45,7 @@ module Jekyll if site.has_key?("crossref") ## We already have refs loaded, so merge - site['crossref'].merge!(unvalidated_refs) { - |key, old_value, new_value| - + site['crossref'].merge!(unvalidated_refs) { |key, old_value, new_value| if old_value != new_value abort("Error: autocrossref key '#{key}' wants to point to both '#{old_value}' and '#{new_value}'") end diff --git a/_plugins/glossary.rb b/_plugins/glossary.rb index 12a662c5..cbeaa4a5 100644 --- a/_plugins/glossary.rb +++ b/_plugins/glossary.rb @@ -56,9 +56,7 @@ module Jekyll ## Add all synonyms to the autocrossref hash table for automatic linking site.config["crossref"] = site.config["crossref"] ? site.config["crossref"] : {} for term in terms do - site.config["crossref"].merge!({ term => output_full_path }) { - |key, old_value, new_value| - + site.config["crossref"].merge!({ term => output_full_path }) { |key, old_value, new_value| if old_value != new_value abort("Error: autocrossref key '#{key}' wants to point to both '#{old_value}' and '#{new_value}'") end