summaryrefslogtreecommitdiff
path: root/tests/writer.docbook
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2007-01-01 22:07:19 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2007-01-01 22:07:19 +0000
commit27169438551c1edfb8a2251a70ae607a7db36b29 (patch)
tree4e4c300a2a44806250502767f4c7b29fbdfa6bce /tests/writer.docbook
parentae869a092ac3f3f8c91b95b0d67910f96c491db5 (diff)
Changed representation of code blocks to use <screen> and
escaped characters rather than <programlisting> and CDATA. Reason: XML source more easily editable and readable. git-svn-id: https://pandoc.googlecode.com/svn/trunk@393 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'tests/writer.docbook')
-rw-r--r--tests/writer.docbook36
1 files changed, 25 insertions, 11 deletions
diff --git a/tests/writer.docbook b/tests/writer.docbook
index 2736bde74..3b3d661a3 100644
--- a/tests/writer.docbook
+++ b/tests/writer.docbook
@@ -87,9 +87,11 @@
<para>
Code in a block quote:
</para>
- <programlisting><![CDATA[sub status {
+ <screen>
+sub status {
print "working";
-}]]></programlisting>
+}
+</screen>
<para>
A list:
</para>
@@ -129,9 +131,11 @@
<para>
Example:
</para>
- <programlisting><![CDATA[sub status {
+ <screen>
+sub status {
print "working";
-}]]></programlisting>
+}
+</screen>
</blockquote>
<blockquote>
<orderedlist>
@@ -169,19 +173,23 @@
<para>
Code:
</para>
- <programlisting><![CDATA[---- (should be four hyphens)
+ <screen>
+---- (should be four hyphens)
sub status {
print "working";
}
-this code block is indented by one tab]]></programlisting>
+this code block is indented by one tab
+</screen>
<para>
And:
</para>
- <programlisting><![CDATA[ this code block is indented by two tabs
+ <screen>
+ this code block is indented by two tabs
-These should not be escaped: \$ \\ \> \[ \{]]></programlisting>
+These should not be escaped: \$ \\ \> \[ \{
+</screen>
</section>
<section>
<title>Lists</title>
@@ -839,7 +847,9 @@ Cat &amp; 1 \\ \hline
<para>
This should [not][] be a link.
</para>
- <programlisting><![CDATA[[not]: /url]]></programlisting>
+ <screen>
+[not]: /url
+</screen>
<para>
Foo <ulink url="/url/">bar</ulink>.
</para>
@@ -901,7 +911,9 @@ Cat &amp; 1 \\ \hline
Auto-links should not occur here:
<literal>&lt;http://example.com/></literal>
</para>
- <programlisting><![CDATA[or here: <http://example.com/>]]></programlisting>
+ <screen>
+or here: &lt;http://example.com/>
+</screen>
</section>
</section>
<section>
@@ -950,7 +962,9 @@ Cat &amp; 1 \\ \hline
Subsequent blocks are indented to show that they belong to the
footnote (as with list items).
</para>
- <programlisting><![CDATA[ { <code> }]]></programlisting>
+ <screen>
+ { &lt;code> }
+</screen>
<para>
If you want, you can indent every line, but you can also be lazy
and just indent the first line of each block.