Skip to content

Commit 8cbf969

Browse files
committed
Temporarily fix multi-paragraph definition lists
The rdoc markdown parser does not currently parse multi-paragraph definition lists correctly. Instead of putting both paragraphs inside a single definition, only the first paragraph ends up in the definition and the second paragraph is rendered after the definition list as a code block. Since 7.2 appears to be coming soon, this commit fixes the second paragraph rendering as a code block by turning it into a second definition. This doesn't strictly seem like the "correct" fix (compared to fixing the rdoc markdown parser) but it gives us the visual result that we want until rdoc is fixed.
1 parent 692f25a commit 8cbf969

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

actionpack/lib/action_controller/metal/conditional_get.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def etag(&etagger)
4848
# `If-None-Match` header may receive a `304 Not Modified` response if the
4949
# ETag matches exactly.
5050
#
51-
# A weak ETag indicates semantic equivalence, not byte-for-byte equality, so
51+
# : A weak ETag indicates semantic equivalence, not byte-for-byte equality, so
5252
# they're good for caching HTML pages in browser caches. They can't be used
5353
# for responses that must be byte-identical, like serving `Range` requests
5454
# within a PDF file.
@@ -58,7 +58,7 @@ def etag(&etagger)
5858
# `If-None-Match` header may receive a `304 Not Modified` response if the
5959
# ETag matches exactly.
6060
#
61-
# A strong ETag implies exact equality -- the response must match byte for
61+
# : A strong ETag implies exact equality -- the response must match byte for
6262
# byte. This is necessary for serving `Range` requests within a large video
6363
# or PDF file, for example, or for compatibility with some CDNs that don't
6464
# support weak ETags.

0 commit comments

Comments
 (0)