instance method
flatten_to_inline
Ruby on Rails edge
Since edge Private — implementation detail, not part of the public APISignature
flatten_to_inline(text)
No documentation comment.
Parameters
-
textreq
Source
# File actiontext/lib/action_text/markdown_conversion.rb, line 231
def flatten_to_inline(text)
return text unless text.match?(/[\r\n]/)
text.gsub(/[\r\n]+/, " ")
end
Defined in actiontext/lib/action_text/markdown_conversion.rb line 231
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionText::MarkdownConversion