lib/trac-wiki/parser.rb in trac-wiki-0.3.32 vs lib/trac-wiki/parser.rb in trac-wiki-0.3.33

- old
+ new

@@ -441,22 +441,22 @@ style = [] attrs ||= '' attrs.strip.split(/\s*,\s*/).each do |opt| case opt when /^\d+[^\d]*$/ - a['width'] = escape_url(opt) + a['width'] = opt when /^(right|left|center)/i - a['align'] = escape_url(opt) + a['align'] = opt when /^(top|bottom|middle)$/i - a['valign'] = escape_url(opt) + a['valign'] = opt when /^link=(.*)$/i - a['link'] = escape_url($1) + a['link'] = $1 when /^nolink$/i # pass when /^(align|valign|border|width|height|alt|title|longdesc|class|id|usemap)=(.*)$/i - a[$1]= escape_url($2) + a[$1]= $2 when /^(margin|margin-(left|right|top|bottom))=(\d+)$/ - style.push($1 + ':' + escape_url($3)) + style.push($1 + ':' + $3) end end a[:style] = style.join(';') if ! style.empty? return {} if a.empty? return a;