mods/standard/chunks/include.rb in wagn-1.12.9 vs mods/standard/chunks/include.rb in wagn-1.12.10

- old
+ new

@@ -20,14 +20,12 @@ result = case name when /^\#\#/ ; '' # invisible comment when /^\#/ ; "<!-- #{CGI.escapeHTML in_brackets} -->" # when /^\s*$/ ; '' # no name else - @options = if @opt_lists - @opt_lists.split('|').reverse.inject(nil) do |prev_level, level_options| - process_options level_options, prev_level - end - else {} end + @options = @opt_lists.to_s.split('|').reverse.inject(nil) do |prev_level, level_options| + process_options level_options, prev_level + end || {} @options.merge! :inc_name => name, :inc_syntax => in_brackets @name = name end @process_chunk = result if !@name