instance method
break_if_nested_list
Ruby on Rails 7.1.6
Since v7.0.10 PrivateSignature
break_if_nested_list(node, text)
No documentation comment.
Parameters
-
nodereq -
textreq
Source
# File actiontext/lib/action_text/plain_text_conversion.rb, line 109
def break_if_nested_list(node, text)
if list_node_depth_for_node(node) > 0
"\n#{text}"
else
text
end
end
Defined in actiontext/lib/action_text/plain_text_conversion.rb line 109
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionText::PlainTextConversion