Commit 6c44348a7f82cc190c2a30e68ab94fc08aa00d7e

Authored by Andrey Karpikov
1 parent d2db1ca5

check p

@@ -285,11 +285,8 @@ module Kanjai @@ -285,11 +285,8 @@ module Kanjai
285 end 285 end
286 elsif item[:name] == 'p' 286 elsif item[:name] == 'p'
287 if item[:children].count > 0 287 if item[:children].count > 0
288 - #subparts << "<p>#{self.replace_text_marker('p', item[:children][0][:source], hash_value).html_safe}</p>" 288 + subparts << "<p #{attributes.to_a.collect{|item| "#{item.first}='#{item.last}'" }.join(' ')} >#{self.replace_text_marker('p', item[:children][0][:source], hash_value).html_safe}</p>"
289 #subparts.p(attributes, self.replace_text_marker('p', item[:children][0][:source], hash_value).html_safe) 289 #subparts.p(attributes, self.replace_text_marker('p', item[:children][0][:source], hash_value).html_safe)
290 - subparts.send(item[:name], attributes) do |next_subparts|  
291 - next_subparts << self.replace_text_marker('p', item[:children][0][:source], hash_value).html_safe  
292 - end  
293 end 290 end
294 else 291 else
295 subparts.send(item[:name], attributes) do |next_subparts| 292 subparts.send(item[:name], attributes) do |next_subparts|
1 module Kanjai 1 module Kanjai
2 - VERSION = "0.0.305" 2 + VERSION = "0.0.306"
3 end 3 end