diff options
author | John MacFarlane <jgm@berkeley.edu> | 2011-07-24 23:36:30 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2011-07-24 23:36:30 -0700 |
commit | a3327835be6caf6f09941c1317b224d34d241c29 (patch) | |
tree | bd4f882243be7e154f2e5a6f947f091d61b178c4 /tests | |
parent | 07c7cd19459da37372fc888e3e34e7feee284aec (diff) | |
download | pandoc-a3327835be6caf6f09941c1317b224d34d241c29.tar.gz |
Docbook writer: Use programlisting for code blocks.
Instead of screen, as before.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/writer.docbook | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/tests/writer.docbook b/tests/writer.docbook index e7e948288..780775d0f 100644 --- a/tests/writer.docbook +++ b/tests/writer.docbook @@ -84,11 +84,11 @@ <para> Code in a block quote: </para> - <screen> + <programlisting> sub status { print "working"; } -</screen> +</programlisting> <para> A list: </para> @@ -130,7 +130,7 @@ sub status { <para> Code: </para> - <screen> + <programlisting> ---- (should be four hyphens) sub status { @@ -138,15 +138,15 @@ sub status { } this code block is indented by one tab -</screen> +</programlisting> <para> And: </para> - <screen> + <programlisting> this code block is indented by two tabs These should not be escaped: \$ \\ \> \[ \{ -</screen> +</programlisting> </section> <section id="lists"> <title>Lists</title> @@ -742,9 +742,9 @@ These should not be escaped: \$ \\ \> \[ \{ <para> orange fruit </para> - <screen> + <programlisting> { orange code block } -</screen> +</programlisting> <blockquote> <para> orange block quote @@ -902,17 +902,17 @@ These should not be escaped: \$ \\ \> \[ \{ <para> This should be a code block, though: </para> - <screen> + <programlisting> <div> foo </div> -</screen> +</programlisting> <para> As should this: </para> - <screen> + <programlisting> <div>foo</div> -</screen> +</programlisting> <para> Now, nested: </para> @@ -942,9 +942,9 @@ These should not be escaped: \$ \\ \> \[ \{ <para> Code block: </para> - <screen> + <programlisting> <!-- Comment --> -</screen> +</programlisting> <para> Just plain comment, with trailing spaces on the line: </para> @@ -952,9 +952,9 @@ These should not be escaped: \$ \\ \> \[ \{ <para> Code: </para> - <screen> + <programlisting> <hr /> -</screen> +</programlisting> <para> Hr's: </para> @@ -1291,9 +1291,9 @@ These should not be escaped: \$ \\ \> \[ \{ <para> This should [not][] be a link. </para> - <screen> + <programlisting> [not]: /url -</screen> +</programlisting> <para> Foo <ulink url="/url/">bar</ulink>. </para> @@ -1355,9 +1355,9 @@ These should not be escaped: \$ \\ \> \[ \{ Auto-links should not occur here: <literal><http://example.com/></literal> </para> - <screen> + <programlisting> or here: <http://example.com/> -</screen> +</programlisting> </section> </section> <section id="images"> @@ -1398,9 +1398,9 @@ or here: <http://example.com/> Subsequent blocks are indented to show that they belong to the footnote (as with list items). </para> - <screen> + <programlisting> { <code> } -</screen> +</programlisting> <para> If you want, you can indent every line, but you can also be lazy and just indent the first line of each block. |