test
This commit is contained in:
parent
20c9616bc0
commit
348f48c8d9
@ -31,7 +31,7 @@ class TextFormatter
|
|||||||
end
|
end
|
||||||
|
|
||||||
def to_s
|
def to_s
|
||||||
return ''.html_safe if text.blank? & !quote?
|
return ''.html_safe if text.blank? & !status.quote?
|
||||||
|
|
||||||
html = rewrite do |entity|
|
html = rewrite do |entity|
|
||||||
if entity[:url]
|
if entity[:url]
|
||||||
@ -43,7 +43,7 @@ class TextFormatter
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
html += quotify if quote?
|
html += quotify if status.quote?
|
||||||
|
|
||||||
html = simple_format(html, {}, sanitize: false).delete("\n") if multiline?
|
html = simple_format(html, {}, sanitize: false).delete("\n") if multiline?
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user