diff options
| author | goodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2006-05-01 02:31:07 +0000 |
|---|---|---|
| committer | goodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2006-05-01 02:31:07 +0000 |
| commit | 2bb11a2438f5347db8a084a8d3b9b93721cb1ffc (patch) | |
| tree | 98781d4bcecd04c3398222f8a7a341910e020a9d /docutils/docs/ref | |
| parent | 32179098a8bf651813910ad2c2727fb5b1ea1852 (diff) | |
| download | docutils-2bb11a2438f5347db8a084a8d3b9b93721cb1ffc.tar.gz | |
Added support for multiple attributions in a physical block quote (indented text block), dividing it into multiple logical block quotes
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@4522 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/docs/ref')
| -rw-r--r-- | docutils/docs/ref/rst/restructuredtext.txt | 50 |
1 files changed, 40 insertions, 10 deletions
diff --git a/docutils/docs/ref/rst/restructuredtext.txt b/docutils/docs/ref/rst/restructuredtext.txt index 1445619b3..48f8e741e 100644 --- a/docutils/docs/ref/rst/restructuredtext.txt +++ b/docutils/docs/ref/rst/restructuredtext.txt @@ -1215,9 +1215,9 @@ Block Quotes Doctree element: block_quote, attribution. A text block that is indented relative to the preceding text, without -markup indicating it to be a literal block, is a block quote. All -markup processing (for body elements and inline markup) continues -within the block quote:: +preceding markup indicating it to be a literal block or other content, +is a block quote. All markup processing (for body elements and inline +markup) continues within the block quote:: This is an ordinary paragraph, introducing a block quote. @@ -1225,10 +1225,38 @@ within the block quote:: -- Sherlock Holmes -If the final block of a block quote begins with "--", "---", or a true -em-dash (flush left within the block quote), it is interpreted as an -attribution. If the attribution consists of multiple lines, the left -edges of the second and subsequent lines must align. +A block quote may end with an attribution: a text block beginning with +"--", "---", or a true em-dash, flush left within the block quote. If +the attribution consists of multiple lines, the left edges of the +second and subsequent lines must align. + +Multiple block quotes may occur consecutively if terminated with +attributions. + + Unindented paragraph. + + Block quote 1. + + -- Attribution 1 + + Block quote 2. + +`Empty comments`_ may be used to explicitly terminate preceding +constructs that would otherwise consume a block quote:: + + * List item. + + .. + + Block quote 3. + +Empty comments may also be used to separate block quotes:: + + Block quote 4. + + .. + + Block quote 5. Blank lines are required before and after a block quote, but these blank lines are not included as part of the block quote. @@ -2240,10 +2268,12 @@ constructs is recognized, leave the ".." on a line by itself:: .. |even| this:: ! +.. _empty comments: + An explicit markup start followed by a blank line and nothing else -(apart from whitespace) is an "empty comment". It serves to terminate -a preceding construct, and does **not** consume any indented text -following. To have a block quote follow a list or any indented +(apart from whitespace) is an "_`empty comment`". It serves to +terminate a preceding construct, and does **not** consume any indented +text following. To have a block quote follow a list or any indented construct, insert an unindented empty comment in-between. Syntax diagram:: |
