From d1304e835670a3e025e0f1b5ca3d38dca1ee6d62 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 16 Mar 2011 12:34:37 -0700 Subject: OpenDocument writer: Use "First paragraph" style after most non-para blocks. (Not just headers, as in the last patch.) Patch from Andrea Rossato, slightly modified by JM. --- tests/tables.opendocument | 15 ++++++---- tests/writer.opendocument | 73 +++++++++++++++++++++++++---------------------- 2 files changed, 48 insertions(+), 40 deletions(-) (limited to 'tests') diff --git a/tests/tables.opendocument b/tests/tables.opendocument index e103dee12..ff304ef26 100644 --- a/tests/tables.opendocument +++ b/tests/tables.opendocument @@ -65,7 +65,8 @@ Demonstration of simple table syntax. -Simple table without caption: +Simple table without +caption: @@ -130,7 +131,7 @@ syntax. -Simple table indented two +Simple table indented two spaces: @@ -198,7 +199,8 @@ spaces: Demonstration of simple table syntax. -Multiline table with caption: +Multiline table with +caption: @@ -253,7 +255,7 @@ syntax. Here's the caption. It may span multiple lines. -Multiline table without +Multiline table without caption: @@ -307,7 +309,8 @@ caption: -Table without column headers: +Table without column +headers: @@ -356,7 +359,7 @@ caption: -Multiline table without column +Multiline table without column headers: diff --git a/tests/writer.opendocument b/tests/writer.opendocument index 6a9c18c1f..03ee62af4 100644 --- a/tests/writer.opendocument +++ b/tests/writer.opendocument @@ -910,8 +910,8 @@ short. Nested block quotes: nested nested -This should not be a block quote: 2 -> 1. +This should not be a block quote: +2 > 1. And a following paragraph. Code @@ -924,7 +924,7 @@ Blocks } this code block is indented by one tab -And: +And: this code block is indented by two tabs These should not be escaped: \$ \\ \> \[ \{ @@ -943,7 +943,7 @@ Blocks asterisk 3 -Asterisks loose: +Asterisks loose: asterisk 1 @@ -955,7 +955,7 @@ Blocks asterisk 3 -Pluses tight: +Pluses tight: Plus 1 @@ -967,7 +967,7 @@ Blocks Plus 3 -Pluses loose: +Pluses loose: Plus 1 @@ -979,7 +979,7 @@ Blocks Plus 3 -Minuses tight: +Minuses tight: Minus 1 @@ -991,7 +991,7 @@ Blocks Minus 3 -Minuses loose: +Minuses loose: Minus 1 @@ -1016,7 +1016,7 @@ Blocks Third -and: +and: One @@ -1028,7 +1028,7 @@ Blocks Three -Loose using tabs: +Loose using tabs: First @@ -1040,7 +1040,7 @@ Blocks Third -and using spaces: +and using spaces: One @@ -1052,7 +1052,7 @@ Blocks Three -Multiple paragraphs: +Multiple paragraphs: Item 1, graf one. @@ -1103,7 +1103,7 @@ Blocks Third -Same thing but with +Same thing but with paragraphs: @@ -1197,7 +1197,7 @@ markers -Autonumbering: +Autonumbering: Autonumber. @@ -1211,7 +1211,8 @@ markers -Should not be a list item: +Should not be a list +item: M.A. 2007 B. Williams @@ -1226,7 +1227,7 @@ fruit banana yellow fruit -Tight using tabs: +Tight using tabs: apple red fruit orange @@ -1235,14 +1236,15 @@ fruit banana yellow fruit -Loose: +Loose: apple red fruit orange orange fruit banana yellow fruit -Multiple blocks with italics: +Multiple blocks with +italics: apple red fruitcontains @@ -1250,7 +1252,8 @@ seeds, crisp, pleasant to taste orange orange fruit{ orange code block }orange block quote -Multiple definitions, tight: +Multiple definitions, +tight: apple red fruit computer @@ -1258,15 +1261,16 @@ block quote orange fruit bank -Multiple definitions, loose: +Multiple definitions, +loose: apple red fruit computer orange orange fruit bank -Blank line after term, indented marker, -alternate markers: +Blank line after term, indented +marker, alternate markers: apple red fruit computer @@ -1302,20 +1306,20 @@ though: <div> foo </div> -As should this: +As should this: <div>foo</div> -Now, nested: +Now, nested: foo This should just be an HTML comment: Multiline: Code block: <!-- Comment --> -Just plain comment, with trailing +Just plain comment, with trailing spaces on the line: Code: <hr /> -Hr’s: +Hr’s: Inline Markup @@ -1439,7 +1443,8 @@ math: 23$. -Here’s a LaTeX table: +Here’s a LaTeX +table: Special Characters @@ -1461,8 +1466,8 @@ Characters copyright: © -AT&T has an ampersand in their -name. +AT&T has an ampersand in +their name. AT&T is another way to write it. This & that. @@ -1523,7 +1528,7 @@ by itself should be a link. thrice. This should [not][] be a link. [not]: /url -Foo +Foo bar. Foo biz. @@ -1555,11 +1560,11 @@ link in pointy braces. It should. -An e-mail address: +An e-mail address: nobody@nowhere.net Blockquoted: http://example.com/ -Auto-links should not occur here: +Auto-links should not occur here: <http://example.com/> or here: <http://example.com/> @@ -1602,8 +1607,8 @@ quote. list. -This paragraph should not be part of -the note, as it is not indented. +This paragraph should not be part +of the note, as it is not indented. -- cgit v1.2.3