aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2011-07-24 23:36:30 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2011-07-24 23:36:30 -0700
commita3327835be6caf6f09941c1317b224d34d241c29 (patch)
treebd4f882243be7e154f2e5a6f947f091d61b178c4 /tests
parent07c7cd19459da37372fc888e3e34e7feee284aec (diff)
downloadpandoc-a3327835be6caf6f09941c1317b224d34d241c29.tar.gz
Docbook writer: Use programlisting for code blocks.
Instead of screen, as before.
Diffstat (limited to 'tests')
-rw-r--r--tests/writer.docbook44
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 &quot;working&quot;;
}
-</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: \$ \\ \&gt; \[ \{
-</screen>
+</programlisting>
</section>
<section id="lists">
<title>Lists</title>
@@ -742,9 +742,9 @@ These should not be escaped: \$ \\ \&gt; \[ \{
<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: \$ \\ \&gt; \[ \{
<para>
This should be a code block, though:
</para>
- <screen>
+ <programlisting>
&lt;div&gt;
foo
&lt;/div&gt;
-</screen>
+</programlisting>
<para>
As should this:
</para>
- <screen>
+ <programlisting>
&lt;div&gt;foo&lt;/div&gt;
-</screen>
+</programlisting>
<para>
Now, nested:
</para>
@@ -942,9 +942,9 @@ These should not be escaped: \$ \\ \&gt; \[ \{
<para>
Code block:
</para>
- <screen>
+ <programlisting>
&lt;!-- Comment --&gt;
-</screen>
+</programlisting>
<para>
Just plain comment, with trailing spaces on the line:
</para>
@@ -952,9 +952,9 @@ These should not be escaped: \$ \\ \&gt; \[ \{
<para>
Code:
</para>
- <screen>
+ <programlisting>
&lt;hr /&gt;
-</screen>
+</programlisting>
<para>
Hr's:
</para>
@@ -1291,9 +1291,9 @@ These should not be escaped: \$ \\ \&gt; \[ \{
<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: \$ \\ \&gt; \[ \{
Auto-links should not occur here:
<literal>&lt;http://example.com/&gt;</literal>
</para>
- <screen>
+ <programlisting>
or here: &lt;http://example.com/&gt;
-</screen>
+</programlisting>
</section>
</section>
<section id="images">
@@ -1398,9 +1398,9 @@ or here: &lt;http://example.com/&gt;
Subsequent blocks are indented to show that they belong to the
footnote (as with list items).
</para>
- <screen>
+ <programlisting>
{ &lt;code&gt; }
-</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.