aboutsummaryrefslogtreecommitdiff
path: root/tests/writer.man
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2007-08-08 02:43:15 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2007-08-08 02:43:15 +0000
commite814a3f6d23f640b1aed5b7cb949459d514a3e33 (patch)
tree4c9f89c85d5e050f27b4a732c7bad0542b5c9928 /tests/writer.man
parent22a65385571737b6232debac884184d6504222fc (diff)
downloadpandoc-e814a3f6d23f640b1aed5b7cb949459d514a3e33.tar.gz
Major change in the way ordered lists are handled:
+ The changes are documented in README, under Lists. + The OrderedList block element now stores information about list number style, list number delimiter, and starting number. + The readers parse this information, when possible. + The writers use this information to style ordered lists. + Test suites have been changed accordingly. Motivation: It's often useful to start lists with numbers other than 1, and to have control over the style of the list. Added to Text.Pandoc.Shared: + camelCaseToHyphenated + toRomanNumeral + anyOrderedListMarker + orderedListMarker + orderedListMarkers Added to Text.Pandoc.ParserCombinators: + charsInBalanced' + withHorizDisplacement + romanNumeral RST writer: + Force blank line before lists, so that sublists will be handled correctly. LaTeX reader: + Fixed bug in parsing of footnotes containing multiple paragraphs, introduced by use of charsInBalanced. Fix: use charsInBalanced' instead. LaTeX header: + use mathletters option in ucs package, so that basic unicode Greek letters will work properly. git-svn-id: https://pandoc.googlecode.com/svn/trunk@834 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'tests/writer.man')
-rw-r--r--tests/writer.man97
1 files changed, 71 insertions, 26 deletions
diff --git a/tests/writer.man b/tests/writer.man
index 08782effa..05d766108 100644
--- a/tests/writer.man
+++ b/tests/writer.man
@@ -54,9 +54,9 @@ Code in a block quote:
\f[]
.PP
A list:
-.IP 1. 4
+.IP "1." 3
item one
-.IP 2. 4
+.IP "2." 3
item two
.PP
Nested block quotes:
@@ -84,9 +84,9 @@ Example:
\f[]
.RE
.RS
-.IP 1. 4
+.IP "1." 3
do laundry
-.IP 2. 4
+.IP "2." 3
take out the trash
.RE
.PP
@@ -179,48 +179,48 @@ Minus 3
.SS Ordered
.PP
Tight:
-.IP 1. 4
+.IP "1." 3
First
-.IP 2. 4
+.IP "2." 3
Second
-.IP 3. 4
+.IP "3." 3
Third
.PP
and:
-.IP 1. 4
+.IP "1." 3
One
-.IP 2. 4
+.IP "2." 3
Two
-.IP 3. 4
+.IP "3." 3
Three
.PP
Loose using tabs:
-.IP 1. 4
+.IP "1." 3
First
-.IP 2. 4
+.IP "2." 3
Second
-.IP 3. 4
+.IP "3." 3
Third
.PP
and using spaces:
-.IP 1. 4
+.IP "1." 3
One
-.IP 2. 4
+.IP "2." 3
Two
-.IP 3. 4
+.IP "3." 3
Three
.PP
Multiple paragraphs:
-.IP 1. 4
+.IP "1." 3
Item 1, graf one\.
.RS 4
.PP
Item 1\. graf two\. The quick brown fox jumped over the lazy dog's
back\.
.RE
-.IP 2. 4
+.IP "2." 3
Item 2\.
-.IP 3. 4
+.IP "3." 3
Item 3\.
.SS Nested
.IP \[bu] 2
@@ -235,9 +235,9 @@ Tab
.RE
.PP
Here's another:
-.IP 1. 4
+.IP "1." 3
First
-.IP 2. 4
+.IP "2." 3
Second:
.RS 4
.IP \[bu] 2
@@ -247,13 +247,13 @@ Fie
.IP \[bu] 2
Foe
.RE
-.IP 3. 4
+.IP "3." 3
Third
.PP
Same thing but with paragraphs:
-.IP 1. 4
+.IP "1." 3
First
-.IP 2. 4
+.IP "2." 3
Second:
.RS 4
.IP \[bu] 2
@@ -263,7 +263,7 @@ Fie
.IP \[bu] 2
Foe
.RE
-.IP 3. 4
+.IP "3." 3
Third
.SS Tabs and spaces
.IP \[bu] 2
@@ -276,6 +276,51 @@ this is an example list item indented with tabs
.IP \[bu] 2
this is an example list item indented with spaces
.RE
+.SS Fancy list markers
+.IP "(2)" 4
+begins with 2
+.IP "(3)" 4
+and now 3
+.RS 4
+.PP
+with a continuation
+.IP "iv." 4
+sublist with roman numerals, starting with 4
+.IP " v." 4
+more items
+.RS 4
+.IP "(A)" 4
+a subsublist
+.IP "(B)" 4
+a subsublist
+.RE
+.RE
+.PP
+Nesting:
+.IP "A." 3
+Upper Alpha
+.RS 4
+.IP "I." 3
+Upper Roman\.
+.RS 4
+.IP "(6)" 4
+Decimal start with 6
+.RS 4
+.IP "c)" 3
+Lower alpha with paren
+.RE
+.RE
+.RE
+.PP
+Autonumbering:
+.IP "1." 3
+Autonumber\.
+.IP "2." 3
+More\.
+.RS 4
+.IP "1." 3
+Nested\.
+.RE
.PP
* * * * *
.SH Definition Lists
@@ -716,7 +761,7 @@ space\.[^my note] Here is an inline note\.[3]
.PP
Notes can go in quotes\.[4]
.RE
-.IP 1. 4
+.IP "1." 3
And in list items\.[5]
.PP
This paragraph should not be part of the note, as it is not