aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2008-07-27 03:54:07 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2008-07-27 03:54:07 +0000
commit57df7f5eb6c7d9e258ffc017380efd3b3422add9 (patch)
treee0b2d07abd6d1ff3eb57b8f0b45ebd8438218813 /tests
parentddaec05d8f49308363c694718240bdaf58466659 (diff)
downloadpandoc-57df7f5eb6c7d9e258ffc017380efd3b3422add9.tar.gz
HTML writer: override Text.XHtml's stringToHtml function,
so that characters below 0xff are not converted to numerical entity references. Also convert '\160' to "&nbsp;". This should aid readability and editability of the HTML source. It does presuppose that the HTML will be served as UTF-8. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1338 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'tests')
-rw-r--r--tests/writer.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/writer.html b/tests/writer.html
index 4a7c384ee..8a4f62fee 100644
--- a/tests/writer.html
+++ b/tests/writer.html
@@ -412,7 +412,7 @@ These should not be escaped: \$ \\ \&gt; \[ \{
><p
>Should not be a list item:</p
><p
- >M.A. 2007</p
+ >M.A.&nbsp;2007</p
><p
>B. Williams</p
><hr
@@ -678,7 +678,7 @@ Blah
>hello</em
></sup
> a<sup
- >hello there</sup
+ >hello&nbsp;there</sup
>.</p
><p
>Subscripts: H<sub
@@ -686,7 +686,7 @@ Blah
>O, H<sub
>23</sub
>O, H<sub
- >many of them</sub
+ >many&nbsp;of&nbsp;them</sub
>O.</p
><p
>These should not be superscripts or subscripts, because of the unescaped spaces: a^b c^d, a~b c~d.</p