提交 cf8605ad 编写于 作者: V Vipul A M 提交者: GitHub

Merge pull request #25545 from derekprior/dp-simple-format-docs

Document `simple_format` handling of `\r`
......@@ -269,10 +269,11 @@ def word_wrap(text, line_width: 80, break_sequence: "\n")
end
# Returns +text+ transformed into HTML using simple formatting rules.
# Two or more consecutive newlines(<tt>\n\n</tt>) are considered as a
# paragraph and wrapped in <tt><p></tt> tags. One newline (<tt>\n</tt>) is
# considered as a linebreak and a <tt><br /></tt> tag is appended. This
# method does not remove the newlines from the +text+.
# Two or more consecutive newlines(<tt>\n\n</tt> or <tt>\r\n\r\n</tt>) are
# considered a paragraph and wrapped in <tt><p></tt> tags. One newline
# (<tt>\n</tt> or <tt>\r\n</tt>) is considered a linebreak and a
# <tt><br /></tt> tag is appended. This method does not remove the
# newlines from the +text+.
#
# You can pass any HTML attributes into <tt>html_options</tt>. These
# will be added to all created paragraphs.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册