Skip to content

Commit

Permalink
Fixes exception when no renderer options specified.
Browse files Browse the repository at this point in the history
(Oops! Forgot to test with example presentation.)
  • Loading branch information
MichaelHackett committed Sep 15, 2012
1 parent 4725957 commit c7bf17d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/showoff_utils.rb
Expand Up @@ -316,7 +316,7 @@ def self.showoff_markdown(dir = ".")


def self.showoff_renderer_options(dir = '.', default_options = {}) def self.showoff_renderer_options(dir = '.', default_options = {})
opts = get_config_option(dir, showoff_markdown(dir)) opts = get_config_option(dir, showoff_markdown(dir))
Hash[opts.map {|k, v| [k.to_sym, v]}] # keys must be symbols Hash[opts.map {|k, v| [k.to_sym, v]}] if opts # keys must be symbols
end end


def self.get_config_option(dir, option, default = nil) def self.get_config_option(dir, option, default = nil)
Expand Down

0 comments on commit c7bf17d

Please sign in to comment.