Showing
2 changed files
with
2 additions
and
2 deletions
| @@ -295,7 +295,7 @@ module Kanjai | @@ -295,7 +295,7 @@ module Kanjai | ||
| 295 | end | 295 | end |
| 296 | elsif item[:name] == 'p' | 296 | elsif item[:name] == 'p' |
| 297 | if item[:children].count > 0 | 297 | if item[:children].count > 0 |
| 298 | - 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>" | 298 | + subparts << "<p #{attributes.to_a.collect{|item| "#{item.first}='#{item.last}'" }.join(' ')} >#{self.replace_text_marker('p', item[:children][0][:source].to_s.strip, hash_value).html_safe}</p>" |
| 299 | #subparts.p(attributes, self.replace_text_marker('p', item[:children][0][:source], hash_value).html_safe) | 299 | #subparts.p(attributes, self.replace_text_marker('p', item[:children][0][:source], hash_value).html_safe) |
| 300 | end | 300 | end |
| 301 | else | 301 | else |