From 030d94e1c3cd4be0ab9d7c16fccfa973cedb5d38 Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Thu, 4 Jan 2007 22:52:16 +0000 Subject: 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 --- tests/writer.smart.html | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'tests/writer.smart.html') diff --git a/tests/writer.smart.html b/tests/writer.smart.html index c14a6de54..14b70e2fe 100644 --- a/tests/writer.smart.html +++ b/tests/writer.smart.html @@ -39,7 +39,7 @@ here.

Code in a block quote:

sub status {
-    print "working";
+    print "working";
 }
 

A list:

@@ -60,7 +60,7 @@ here.

Example:

sub status {
-    print "working";
+    print "working";
 }
 
@@ -84,7 +84,7 @@ here.

---- (should be four hyphens)
 
 sub status {
-    print "working";
+    print "working";
 }
 
 this code block is indented by one tab
@@ -92,7 +92,7 @@ this code block is indented by one tab
 

And:

    this code block is indented by two tabs
 
-These should not be escaped:  \$ \\ \> \[ \{
+These should not be escaped:  \$ \\ \> \[ \{
 

Lists

@@ -255,12 +255,12 @@ These should not be escaped: \$ \\ \> \[ \{
foo

This should be a code block, though:

-
<div>
+
<div>
     foo
-</div>
+</div>
 

As should this:

-
<div>foo</div>
+
<div>foo</div>
 

Now, nested:

@@ -281,12 +281,12 @@ Blah This is another comment. -->

Code block:

-
<!-- Comment -->
+
<!-- Comment -->
 

Just plain comment, with trailing spaces on the line:

Code:

-
<hr />
+
<hr />
 

Hr’s:


@@ -315,7 +315,7 @@ Blah

So is this word.

This is strong and em.

So is this word.

-

This is code: >, $, \, \$, <html>.

+

This is code: >, $, \, \$, <html>.


Smart quotes, ellipses, dashes

“Hello,” said the spider. “‘Shelob’ is my name.”

@@ -355,11 +355,11 @@ Cat & 1 \\ \hline

Special Characters

Here is some unicode:

    -
  • I hat: Î
  • -
  • o umlaut: ö
  • -
  • section: §
  • -
  • set membership: ∈
  • -
  • copyright: ©
  • +
  • I hat: Î
  • +
  • o umlaut: ö
  • +
  • section: §
  • +
  • set membership: ∈
  • +
  • copyright: ©

AT&T has an ampersand in their name.

AT&T is another way to write it.

@@ -389,7 +389,7 @@ Cat & 1 \\ \hline

URL and title.

URL and title.

URL and title.

-

URL and title

+

URL and title

URL and title