diff options
| author | John MacFarlane <jgm@berkeley.edu> | 2014-07-23 10:06:36 -0700 |
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2014-07-23 10:06:36 -0700 |
| commit | 9c3f7688ee1c44c5452cb30986f1e37317acb6e2 (patch) | |
| tree | fc0bebc2dc0ca75b823a016630d0c0e041ef6b1d /tests | |
| parent | 5089bc8fe29949500443205bb0f91177d0af59dc (diff) | |
| download | pandoc-9c3f7688ee1c44c5452cb30986f1e37317acb6e2.tar.gz | |
DocBook reader: Better handle elements inside code environments.
Of course, we can't include structure in the code block, but
this way we at least preserve the text. Closes #1449.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/docbook-reader.docbook | 3 | ||||
| -rw-r--r-- | tests/docbook-reader.native | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/docbook-reader.docbook b/tests/docbook-reader.docbook index c76925917..aef632fb1 100644 --- a/tests/docbook-reader.docbook +++ b/tests/docbook-reader.docbook @@ -89,6 +89,9 @@ sub status { print "working"; } </programlisting> + <screen> +% <command>ls</command> +</screen> <para> A list: </para> diff --git a/tests/docbook-reader.native b/tests/docbook-reader.native index 2d29bb154..583b016bb 100644 --- a/tests/docbook-reader.native +++ b/tests/docbook-reader.native @@ -23,6 +23,7 @@ Pandoc (Meta {unMeta = fromList [("author",MetaList [MetaInlines [Str "John",Spa ,BlockQuote [Para [Str "Code",Space,Str "in",Space,Str "a",Space,Str "block",Space,Str "quote:"] ,CodeBlock ("",[],[]) "sub status {\n print \"working\";\n}" + ,CodeBlock ("",[],[]) "% ls" ,Para [Str "A",Space,Str "list:"] ,OrderedList (1,Decimal,DefaultDelim) [[Para [Str "item",Space,Str "one"]] |
