diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2012-05-09 10:34:37 -0700 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2012-05-09 10:34:37 -0700 |
commit | 87de361cdc165e4c31ddde0287635ef54ac409a8 (patch) | |
tree | 1f6439c6a5e8bcabce50eb4de4b6d12eb28c7770 /tests | |
parent | fb62e0937c29c4a91cfd0fbcb688f62023da6eee (diff) | |
download | pandoc-87de361cdc165e4c31ddde0287635ef54ac409a8.tar.gz |
DocBook reader: More improvements, passes tests.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/docbook-reader.docbook | 24 | ||||
-rw-r--r-- | tests/docbook-reader.native | 8 |
2 files changed, 16 insertions, 16 deletions
diff --git a/tests/docbook-reader.docbook b/tests/docbook-reader.docbook index 1b195602d..eb70dd33c 100644 --- a/tests/docbook-reader.docbook +++ b/tests/docbook-reader.docbook @@ -1259,10 +1259,10 @@ or here: <http://example.com/> Here's the caption. It may span multiple lines. </title> <tgroup cols="4"> - <colspec colwidth="15*" align="center" /> - <colspec colwidth="13*" align="left" /> - <colspec colwidth="16*" align="right" /> - <colspec colwidth="33*" align="left" /> + <colspec colwidth="2*" align="center" /> + <colspec colwidth="2*" align="left" /> + <colspec colwidth="3*" align="right" /> + <colspec colwidth="3*" align="left" /> <thead> <row> <entry> @@ -1316,10 +1316,10 @@ or here: <http://example.com/> </para> <informaltable> <tgroup cols="4"> - <colspec colwidth="15*" align="center" /> - <colspec colwidth="13*" align="left" /> - <colspec colwidth="16*" align="right" /> - <colspec colwidth="33*" align="left" /> + <colspec colwidth="1*" align="center" /> + <colspec colwidth="2*" align="left" /> + <colspec colwidth="3*" align="right" /> + <colspec colwidth="4*" align="left" /> <thead> <row> <entry> @@ -1428,10 +1428,10 @@ or here: <http://example.com/> </para> <informaltable> <tgroup cols="4"> - <colspec colwidth="15*" align="center" /> - <colspec colwidth="13*" align="left" /> - <colspec colwidth="16*" align="right" /> - <colspec colwidth="33*" align="left" /> + <colspec colwidth="10*" align="center" /> + <colspec colwidth="10*" align="left" /> + <colspec colwidth="10*" align="right" /> + <colspec colwidth="10*" align="left" /> <tbody> <row> <entry> diff --git a/tests/docbook-reader.native b/tests/docbook-reader.native index aa459eff7..3d403648b 100644 --- a/tests/docbook-reader.native +++ b/tests/docbook-reader.native @@ -261,7 +261,7 @@ Pandoc (Meta {docTitle = [Str "Pandoc",Space,Str "Test",Space,Str "Suite"], docA ,Header 1 [Str "Images"] ,Para [Str "From",Space,Quoted DoubleQuote [Str "Voyage",Space,Str "dans",Space,Str "la",Space,Str "Lune"],Space,Str "by",Space,Str "Georges",Space,Str "Melies",Space,Str "(1902):"] ,Para [Image [Str "lalune"] ("lalune.jpg","")] -,Para [Str "Here",Space,Str "is",Space,Str "a",Space,Str "movie",Space,Image [Str "movie"] ("movie.jpg",""),Space,Str "icon."] +,Para [Str "Here",Space,Str "is",Space,Str "a",Space,Str "movie",Space,Image [] ("movie.jpg",""),Space,Str "icon."] ,Header 1 [Str "Footnotes"] ,Para [Str "Here",Space,Str "is",Space,Str "a",Space,Str "footnote",Space,Str "reference,",Note [Para [Str "Here",Space,Str "is",Space,Str "the",Space,Str "footnote.",Space,Str "It",Space,Str "can",Space,Str "go",Space,Str "anywhere",Space,Str "after",Space,Str "the",Space,Str "footnote",Space,Str "reference.",Space,Str "It",Space,Str "need",Space,Str "not",Space,Str "be",Space,Str "placed",Space,Str "at",Space,Str "the",Space,Str "end",Space,Str "of",Space,Str "the",Space,Str "document."]],Space,Str "and",Space,Str "another.",Note [Para [Str "Here\8217s",Space,Str "the",Space,Str "long",Space,Str "note.",Space,Str "This",Space,Str "one",Space,Str "contains",Space,Str "multiple",Space,Str "blocks."],Para [Str "Subsequent",Space,Str "blocks",Space,Str "are",Space,Str "indented",Space,Str "to",Space,Str "show",Space,Str "that",Space,Str "they",Space,Str "belong",Space,Str "to",Space,Str "the",Space,Str "footnote",Space,Str "(as",Space,Str "with",Space,Str "list",Space,Str "items)."],CodeBlock ("",[],[]) " { <code> }",Para [Str "If",Space,Str "you",Space,Str "want,",Space,Str "you",Space,Str "can",Space,Str "indent",Space,Str "every",Space,Str "line,",Space,Str "but",Space,Str "you",Space,Str "can",Space,Str "also",Space,Str "be",Space,Str "lazy",Space,Str "and",Space,Str "just",Space,Str "indent",Space,Str "the",Space,Str "first",Space,Str "line",Space,Str "of",Space,Str "each",Space,Str "block."]],Space,Str "This",Space,Str "should",Space,Emph [Str "not"],Space,Str "be",Space,Str "a",Space,Str "footnote",Space,Str "reference,",Space,Str "because",Space,Str "it",Space,Str "contains",Space,Str "a",Space,Str "space.[^my",Space,Str "note]",Space,Str "Here",Space,Str "is",Space,Str "an",Space,Str "inline",Space,Str "note.",Note [Para [Str "This",Space,Str "is",Space,Emph [Str "easier"],Space,Str "to",Space,Str "type.",Space,Str "Inline",Space,Str "notes",Space,Str "may",Space,Str "contain",Space,Link [Str "links"] ("http://google.com",""),Space,Str "and",Space,Code ("",[],[]) "]",Space,Str "verbatim",Space,Str "characters,",Space,Str "as",Space,Str "well",Space,Str "as",Space,Str "[bracketed",Space,Str "text]."]]] ,BlockQuote @@ -325,7 +325,7 @@ Pandoc (Meta {docTitle = [Str "Pandoc",Space,Str "Test",Space,Str "Suite"], docA ,[Plain [Str "1"]] ,[Plain [Str "1"]]]] ,Para [Str "Multiline",Space,Str "table",Space,Str "with",Space,Str "caption:"] -,Table [Str "Here's",Space,Str "the",Space,Str "caption.",Space,Str "It",Space,Str "may",Space,Str "span",Space,Str "multiple",Space,Str "lines."] [AlignCenter,AlignLeft,AlignRight,AlignLeft] [0.15,0.1375,0.1625,0.3375] +,Table [Str "Here's",Space,Str "the",Space,Str "caption.",Space,Str "It",Space,Str "may",Space,Str "span",Space,Str "multiple",Space,Str "lines."] [AlignCenter,AlignLeft,AlignRight,AlignLeft] [0.2,0.2,0.3,0.3] [[Plain [Str "Centered",Space,Str "Header"]] ,[Plain [Str "Left",Space,Str "Aligned"]] ,[Plain [Str "Right",Space,Str "Aligned"]] @@ -339,7 +339,7 @@ Pandoc (Meta {docTitle = [Str "Pandoc",Space,Str "Test",Space,Str "Suite"], docA ,[Plain [Str "5.0"]] ,[Plain [Str "Here's",Space,Str "another",Space,Str "one.",Space,Str "Note",Space,Str "the",Space,Str "blank",Space,Str "line",Space,Str "between",Space,Str "rows."]]]] ,Para [Str "Multiline",Space,Str "table",Space,Str "without",Space,Str "caption:"] -,Table [] [AlignCenter,AlignLeft,AlignRight,AlignLeft] [0.15,0.1375,0.1625,0.3375] +,Table [] [AlignCenter,AlignLeft,AlignRight,AlignLeft] [0.1,0.2,0.3,0.4] [[Plain [Str "Centered",Space,Str "Header"]] ,[Plain [Str "Left",Space,Str "Aligned"]] ,[Plain [Str "Right",Space,Str "Aligned"]] @@ -371,7 +371,7 @@ Pandoc (Meta {docTitle = [Str "Pandoc",Space,Str "Test",Space,Str "Suite"], docA ,[Plain [Str "1"]] ,[Plain [Str "1"]]]] ,Para [Str "Multiline",Space,Str "table",Space,Str "without",Space,Str "column",Space,Str "headers:"] -,Table [] [AlignCenter,AlignLeft,AlignRight,AlignLeft] [0.15,0.1375,0.1625,0.3375] +,Table [] [AlignCenter,AlignLeft,AlignRight,AlignLeft] [0.25,0.25,0.25,0.25] [[] ,[] ,[] |