summaryrefslogtreecommitdiff
path: root/tests/writer.docbook
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2007-01-04 22:52:16 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2007-01-04 22:52:16 +0000
commit030d94e1c3cd4be0ab9d7c16fccfa973cedb5d38 (patch)
tree325452ca83818bc0776e257f44342776f9bff78d /tests/writer.docbook
parent24f3710e0911fa8ebe6070ef83c6206e54a46f1a (diff)
Refactored SGML escaping functions and "in tag" functions to
Text/Shared/Pandoc. (escapeSGML, stringToSGML, inTag, inTagSimple, inTagIndented, selfClosingTag) These can be used by both the HTML and Docbook writers. git-svn-id: https://pandoc.googlecode.com/svn/trunk@417 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'tests/writer.docbook')
-rw-r--r--tests/writer.docbook29
1 files changed, 15 insertions, 14 deletions
diff --git a/tests/writer.docbook b/tests/writer.docbook
index 3cf7b6bcf..150b63bac 100644
--- a/tests/writer.docbook
+++ b/tests/writer.docbook
@@ -89,7 +89,7 @@
</para>
<screen>
sub status {
- print "working";
+ print &quot;working&quot;;
}
</screen>
<para>
@@ -133,7 +133,7 @@ sub status {
</para>
<screen>
sub status {
- print "working";
+ print &quot;working&quot;;
}
</screen>
</blockquote>
@@ -177,7 +177,7 @@ sub status {
---- (should be four hyphens)
sub status {
- print "working";
+ print &quot;working&quot;;
}
this code block is indented by one tab
@@ -188,7 +188,7 @@ this code block is indented by one tab
<screen>
this code block is indented by two tabs
-These should not be escaped: \$ \\ \> \[ \{
+These should not be escaped: \$ \\ \&gt; \[ \{
</screen>
</section>
<section>
@@ -577,15 +577,16 @@ These should not be escaped: \$ \\ \> \[ \{
word.
</para>
<para>
- This is code: <literal>></literal>, <literal>$</literal>,
+ This is code: <literal>&gt;</literal>, <literal>$</literal>,
<literal>\</literal>, <literal>\$</literal>,
- <literal>&lt;html></literal>.
+ <literal>&lt;html&gt;</literal>.
</para>
</section>
<section>
<title>Smart quotes, ellipses, dashes</title>
<para>
- "Hello," said the spider. "'Shelob' is my name."
+ &quot;Hello,&quot; said the spider. &quot;'Shelob' is my
+ name.&quot;
</para>
<para>
'A', 'B', and 'C' are letters.
@@ -594,11 +595,11 @@ These should not be escaped: \$ \\ \> \[ \{
'Oak,' 'elm,' and 'beech' are names of trees. So is 'pine.'
</para>
<para>
- 'He said, "I want to go."' Were you alive in the 70's?
+ 'He said, &quot;I want to go.&quot;' Were you alive in the 70's?
</para>
<para>
Here is some quoted '<literal>code</literal>' and a
- "<ulink url="http://example.com/?foo=1&amp;bar=2">quoted link</ulink>".
+ &quot;<ulink url="http://example.com/?foo=1&amp;bar=2">quoted link</ulink>&quot;.
</para>
<para>
Some dashes: one---two --- three--four -- five.
@@ -672,7 +673,7 @@ These should not be escaped: \$ \\ \> \[ \{
<listitem>
<para>
$22,000 is a <emphasis>lot</emphasis> of money. So is $34,000. (It
- worked if "lot" is emphasized.)
+ worked if &quot;lot&quot; is emphasized.)
</para>
</listitem>
<listitem>
@@ -909,17 +910,17 @@ Cat &amp; 1 \\ \hline
</blockquote>
<para>
Auto-links should not occur here:
- <literal>&lt;http://example.com/></literal>
+ <literal>&lt;http://example.com/&gt;</literal>
</para>
<screen>
-or here: &lt;http://example.com/>
+or here: &lt;http://example.com/&gt;
</screen>
</section>
</section>
<section>
<title>Images</title>
<para>
- From "Voyage dans la Lune" by Georges Melies (1902):
+ From &quot;Voyage dans la Lune&quot; by Georges Melies (1902):
</para>
<para>
<inlinemediaobject>
@@ -963,7 +964,7 @@ or here: &lt;http://example.com/>
footnote (as with list items).
</para>
<screen>
- { &lt;code> }
+ { &lt;code&gt; }
</screen>
<para>
If you want, you can indent every line, but you can also be lazy