wiki_formatting_macros.rb.patch

Michael Esemplare, 2012-11-26 22:38

Download (486 Bytes)

View differences:

macros.rb 2012-11-26 21:35:59.311226410 +0000
48 48

  
49 49
        def extract_macro_options(args, *keys)
50 50
          options = {}
51
          while args.last.to_s.strip =~ %r{^(.+)\=(.+)$} && keys.include?($1.downcase.to_sym)
51
          while args.last.to_s.strip =~ %r{^(.+?)\=(.+)$} && keys.include?($1.downcase.to_sym)
52 52
            options[$1.downcase.to_sym] = $2
53 53
            args.pop
54 54
          end