Showing
2 changed files
with
2 additions
and
5 deletions
| ... | ... | @@ -285,11 +285,8 @@ module Kanjai |
| 285 | 285 | end |
| 286 | 286 | elsif item[:name] == 'p' |
| 287 | 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 | 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 | 290 | end |
| 294 | 291 | else |
| 295 | 292 | subparts.send(item[:name], attributes) do |next_subparts| | ... | ... |