Commit 2fb755a610d4aba18a9ed5ab73d48681a558693f

Authored by Karpikau Andrei
1 parent 7954a998

in content change new line on br

... ... @@ -148,7 +148,7 @@ module Kanjai
148 148 else
149 149 html = ''
150 150 end
151   - html
  151 + html.gsub("#newline#", '<br/>')
152 152 end
153 153 end
154 154
... ...
... ... @@ -235,7 +235,7 @@ module Kanjai
235 235 end
236 236 elsif item[:name] == 'p'
237 237 if item[:children].count > 0
238   - subparts.p(attributes, self.replace_text_marker(item[:children][0][:source], hash_value))
  238 + subparts.p(attributes, self.replace_text_marker(item[:children][0][:source], hash_value).html_safe)
239 239 end
240 240 else
241 241 subparts.send(item[:name], attributes) do |next_subparts|
... ... @@ -282,7 +282,7 @@ module Kanjai
282 282 if !hash_value.nil? and !text.nil?
283 283 hash_value.each do |key, value|
284 284 if !key.nil? and !value.nil?
285   - new_text.gsub!(key, value.gsub(/[\r\n]+/, "<br>").html_safe)
  285 + new_text.gsub!(key, value.gsub(/[\r\n]+/, "#newline#"))
286 286 end
287 287 end
288 288 end
... ...
1 1 module Kanjai
2   - VERSION = "0.0.175"
  2 + VERSION = "0.0.176"
3 3 end
... ...