diff options
author | John MacFarlane <jgm@berkeley.edu> | 2011-03-12 13:36:22 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2011-03-12 13:38:04 -0800 |
commit | e24ce1c11da99b69c14f094ef04ed00d75c79a37 (patch) | |
tree | b48f8bb8314b45712705c2b9839268b39eb47253 /tests/writer.opendocument | |
parent | 08797d1b3e877dd3bd4d3c6425c68235e070e0bc (diff) | |
download | pandoc-e24ce1c11da99b69c14f094ef04ed00d75c79a37.tar.gz |
OpenDocument: Use special style for 1st para after heading.
"First paragraph" as opposed to "Text body." This allows
users to specify e.g. that only paragraphs after the first
paragraph of a section are to be indented.
Thanks to Andrea Rossato for the patch.
Closes github Issue #20.
Diffstat (limited to 'tests/writer.opendocument')
-rw-r--r-- | tests/writer.opendocument | 48 |
1 files changed, 25 insertions, 23 deletions
diff --git a/tests/writer.opendocument b/tests/writer.opendocument index 05d45792a..6a9c18c1f 100644 --- a/tests/writer.opendocument +++ b/tests/writer.opendocument @@ -874,12 +874,12 @@ link</text:span></text:a></text:h> <text:h text:style-name="Heading_20_2" text:outline-level="2">Level 2 with <text:span text:style-name="T2">emphasis</text:span></text:h> <text:h text:style-name="Heading_20_3" text:outline-level="3">Level 3</text:h> -<text:p text:style-name="Text_20_body">with no blank line</text:p> +<text:p text:style-name="First_20_paragraph">with no blank line</text:p> <text:h text:style-name="Heading_20_2" text:outline-level="2">Level 2</text:h> -<text:p text:style-name="Text_20_body">with no blank line</text:p> +<text:p text:style-name="First_20_paragraph">with no blank line</text:p> <text:p text:style-name="Horizontal_20_Line" /> <text:h text:style-name="Heading_20_1" text:outline-level="1">Paragraphs</text:h> -<text:p text:style-name="Text_20_body">Here’s a regular +<text:p text:style-name="First_20_paragraph">Here’s a regular paragraph.</text:p> <text:p text:style-name="Text_20_body">In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item. Because a hard-wrapped line in the middle @@ -891,7 +891,7 @@ break<text:line-break />here.</text:p> <text:p text:style-name="Horizontal_20_Line" /> <text:h text:style-name="Heading_20_1" text:outline-level="1">Block Quotes</text:h> -<text:p text:style-name="Text_20_body">E-mail style:</text:p> +<text:p text:style-name="First_20_paragraph">E-mail style:</text:p> <text:p text:style-name="P1">This is a block quote. It is pretty short.</text:p> <text:p text:style-name="P2">Code in a block quote:</text:p> @@ -916,7 +916,7 @@ short.</text:p> <text:p text:style-name="Horizontal_20_Line" /> <text:h text:style-name="Heading_20_1" text:outline-level="1">Code Blocks</text:h> -<text:p text:style-name="Text_20_body">Code:</text:p> +<text:p text:style-name="First_20_paragraph">Code:</text:p> <text:p text:style-name="P9">---- (should be four hyphens)</text:p> <text:p text:style-name="P10"></text:p> <text:p text:style-name="P11">sub status {</text:p> @@ -931,7 +931,7 @@ Blocks</text:h> <text:p text:style-name="Horizontal_20_Line" /> <text:h text:style-name="Heading_20_1" text:outline-level="1">Lists</text:h> <text:h text:style-name="Heading_20_2" text:outline-level="2">Unordered</text:h> -<text:p text:style-name="Text_20_body">Asterisks tight:</text:p> +<text:p text:style-name="First_20_paragraph">Asterisks tight:</text:p> <text:list text:style-name="L2"> <text:list-item> <text:p text:style-name="P19">asterisk 1</text:p> @@ -1004,7 +1004,7 @@ Blocks</text:h> </text:list-item> </text:list> <text:h text:style-name="Heading_20_2" text:outline-level="2">Ordered</text:h> -<text:p text:style-name="Text_20_body">Tight:</text:p> +<text:p text:style-name="First_20_paragraph">Tight:</text:p> <text:list text:style-name="L8"> <text:list-item> <text:p text:style-name="P25">First</text:p> @@ -1080,7 +1080,7 @@ Blocks</text:h> </text:list> </text:list-item> </text:list> -<text:p text:style-name="Text_20_body">Here’s another:</text:p> +<text:p text:style-name="First_20_paragraph">Here’s another:</text:p> <text:list text:style-name="L16"> <text:list-item> <text:p text:style-name="P33">First</text:p> @@ -1176,7 +1176,7 @@ markers</text:h> </text:list> </text:list-item> </text:list> -<text:p text:style-name="Text_20_body">Nesting:</text:p> +<text:p text:style-name="First_20_paragraph">Nesting:</text:p> <text:list text:style-name="L23"> <text:list-item> <text:p text:style-name="P40">Upper Alpha</text:p> @@ -1217,7 +1217,7 @@ markers</text:h> <text:p text:style-name="Horizontal_20_Line" /> <text:h text:style-name="Heading_20_1" text:outline-level="1">Definition Lists</text:h> -<text:p text:style-name="Text_20_body">Tight using spaces:</text:p> +<text:p text:style-name="First_20_paragraph">Tight using spaces:</text:p> <text:p text:style-name="Definition_20_Term_20_Tight">apple</text:p> <text:p text:style-name="Definition_20_Definition_20_Tight">red fruit</text:p> <text:p text:style-name="Definition_20_Term_20_Tight">orange</text:p> @@ -1282,7 +1282,8 @@ fruit</text:p><text:list text:style-name="L25"> </text:list> <text:h text:style-name="Heading_20_1" text:outline-level="1">HTML Blocks</text:h> -<text:p text:style-name="Text_20_body">Simple block on one line:</text:p> +<text:p text:style-name="First_20_paragraph">Simple block on one +line:</text:p> <text:p text:style-name="Text_20_body">foo</text:p> <text:p text:style-name="Text_20_body">And nested without indentation:</text:p> @@ -1318,7 +1319,7 @@ spaces on the line:</text:p> <text:p text:style-name="Horizontal_20_Line" /> <text:h text:style-name="Heading_20_1" text:outline-level="1">Inline Markup</text:h> -<text:p text:style-name="Text_20_body">This is +<text:p text:style-name="First_20_paragraph">This is <text:span text:style-name="T7">emphasized</text:span>, and so <text:span text:style-name="T8">is</text:span><text:span text:style-name="T9"> </text:span><text:span text:style-name="T10">this</text:span>.</text:p> @@ -1365,8 +1366,8 @@ subscripts, because of the unescaped spaces: a^b c^d, a~b c~d.</text:p> <text:p text:style-name="Horizontal_20_Line" /> <text:h text:style-name="Heading_20_1" text:outline-level="1">Smart quotes, ellipses, dashes</text:h> -<text:p text:style-name="Text_20_body">“Hello,” said the spider. -“‘Shelob’ is my name.”</text:p> +<text:p text:style-name="First_20_paragraph">“Hello,” said the +spider. “‘Shelob’ is my name.”</text:p> <text:p text:style-name="Text_20_body">‘A’, ‘B’, and ‘C’ are letters.</text:p> <text:p text:style-name="Text_20_body">‘Oak,’ ‘elm,’ @@ -1413,7 +1414,8 @@ three—four — five.</text:p> α + ω × <text:span text:style-name="T61">x</text:span><text:span text:style-name="T62">2</text:span>.</text:p> </text:list-item> </text:list> -<text:p text:style-name="Text_20_body">These shouldn’t be math:</text:p> +<text:p text:style-name="First_20_paragraph">These shouldn’t be +math:</text:p> <text:list text:style-name="L27"> <text:list-item> <text:p text:style-name="P52">To get the famous equation, write @@ -1441,7 +1443,7 @@ three—four — five.</text:p> <text:p text:style-name="Horizontal_20_Line" /> <text:h text:style-name="Heading_20_1" text:outline-level="1">Special Characters</text:h> -<text:p text:style-name="Text_20_body">Here is some unicode:</text:p> +<text:p text:style-name="First_20_paragraph">Here is some unicode:</text:p> <text:list text:style-name="L28"> <text:list-item> <text:p text:style-name="P53">I hat: Î</text:p> @@ -1485,7 +1487,7 @@ it.</text:p> <text:p text:style-name="Horizontal_20_Line" /> <text:h text:style-name="Heading_20_1" text:outline-level="1">Links</text:h> <text:h text:style-name="Heading_20_2" text:outline-level="2">Explicit</text:h> -<text:p text:style-name="Text_20_body">Just a +<text:p text:style-name="First_20_paragraph">Just a <text:a xlink:type="simple" xlink:href="/url/" office:name=""><text:span text:style-name="Definition">URL</text:span></text:a>.</text:p> <text:p text:style-name="Text_20_body"><text:a xlink:type="simple" xlink:href="/url/" office:name="title"><text:span text:style-name="Definition">URL and title</text:span></text:a>.</text:p> @@ -1502,7 +1504,7 @@ and title</text:span></text:a></text:p> link</text:span></text:a></text:p> <text:p text:style-name="Text_20_body"><text:a xlink:type="simple" xlink:href="" office:name=""><text:span text:style-name="Definition">Empty</text:span></text:a>.</text:p> <text:h text:style-name="Heading_20_2" text:outline-level="2">Reference</text:h> -<text:p text:style-name="Text_20_body">Foo +<text:p text:style-name="First_20_paragraph">Foo <text:a xlink:type="simple" xlink:href="/url/" office:name=""><text:span text:style-name="Definition">bar</text:span></text:a>.</text:p> <text:p text:style-name="Text_20_body">Foo <text:a xlink:type="simple" xlink:href="/url/" office:name=""><text:span text:style-name="Definition">bar</text:span></text:a>.</text:p> @@ -1527,7 +1529,7 @@ by itself should be a link.</text:p> <text:a xlink:type="simple" xlink:href="/url/" office:name="Title with "quote" inside"><text:span text:style-name="Definition">biz</text:span></text:a>.</text:p> <text:h text:style-name="Heading_20_2" text:outline-level="2">With ampersands</text:h> -<text:p text:style-name="Text_20_body">Here’s a +<text:p text:style-name="First_20_paragraph">Here’s a <text:a xlink:type="simple" xlink:href="http://example.com/?foo=1&bar=2" office:name=""><text:span text:style-name="Definition">link with an ampersand in the URL</text:span></text:a>.</text:p> <text:p text:style-name="Text_20_body">Here’s a link with an amersand in @@ -1540,7 +1542,7 @@ link</text:span></text:a>.</text:p> <text:a xlink:type="simple" xlink:href="/script?foo=1&bar=2" office:name=""><text:span text:style-name="Definition">inline link in pointy braces</text:span></text:a>.</text:p> <text:h text:style-name="Heading_20_2" text:outline-level="2">Autolinks</text:h> -<text:p text:style-name="Text_20_body">With an ampersand: +<text:p text:style-name="First_20_paragraph">With an ampersand: <text:a xlink:type="simple" xlink:href="http://example.com/?foo=1&bar=2" office:name=""><text:span text:style-name="Definition"><text:span text:style-name="Teletype">http://example.com/?foo=1&bar=2</text:span></text:span></text:a></text:p> <text:list text:style-name="L29"> <text:list-item> @@ -1562,15 +1564,15 @@ link in pointy braces</text:span></text:a>.</text:p> <text:p text:style-name="P57">or here: <http://example.com/></text:p> <text:p text:style-name="Horizontal_20_Line" /> <text:h text:style-name="Heading_20_1" text:outline-level="1">Images</text:h> -<text:p text:style-name="Text_20_body">From “Voyage dans la Lune” -by Georges Melies (1902):</text:p> +<text:p text:style-name="First_20_paragraph">From “Voyage dans la +Lune” by Georges Melies (1902):</text:p> <text:p text:style-name="Text_20_body"><draw:frame><draw:image xlink:href="lalune.jpg" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" /></draw:frame></text:p> <text:p text:style-name="Text_20_body">Here is a movie <draw:frame><draw:image xlink:href="movie.jpg" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" /></draw:frame> icon.</text:p> <text:p text:style-name="Horizontal_20_Line" /> <text:h text:style-name="Heading_20_1" text:outline-level="1">Footnotes</text:h> -<text:p text:style-name="Text_20_body">Here is a footnote +<text:p text:style-name="First_20_paragraph">Here is a footnote reference,<text:note text:id="ftn0" text:note-class="footnote"><text:note-citation>1</text:note-citation><text:note-body><text:p text:style-name="Footnote">Here is the footnote. It can go anywhere after the footnote reference. It need not be placed at the end of the document.</text:p></text:note-body></text:note> |