aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2008-07-11 02:14:57 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2008-07-11 02:14:57 +0000
commit824bb2d22e40e035703ccf6ec7fd6bcde51950ce (patch)
treeb47ff78e86ddcdea299932fc2e4be39a387aa435 /tests
parent8ed710bc9d771a25e73be2582b379485a3e240dc (diff)
downloadpandoc-824bb2d22e40e035703ccf6ec7fd6bcde51950ce.tar.gz
In smart mode, use nonbreaking spaces after abbreviations in markdown parser.
Thus, for example, "Mr. Brown" comes out as "Mr.~Brown" in LaTeX, and does not produce a sentence-separating space. Resolves Issue #75. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1298 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'tests')
-rw-r--r--tests/testsuite.native2
-rw-r--r--tests/writer.context2
-rw-r--r--tests/writer.docbook2
-rw-r--r--tests/writer.html2
-rw-r--r--tests/writer.latex2
-rw-r--r--tests/writer.man2
-rw-r--r--tests/writer.markdown2
-rw-r--r--tests/writer.native2
-rw-r--r--tests/writer.rst2
-rw-r--r--tests/writer.rtf2
-rw-r--r--tests/writer.texinfo2
11 files changed, 11 insertions, 11 deletions
diff --git a/tests/testsuite.native b/tests/testsuite.native
index d3c4835ed..4ecc51438 100644
--- a/tests/testsuite.native
+++ b/tests/testsuite.native
@@ -165,7 +165,7 @@ Pandoc (Meta [Str "Pandoc",Space,Str "Test",Space,Str "Suite"] ["John MacFarlane
[ [ Plain [Str "Nested",Str "."] ]
] ] ]
, Para [Str "Should",Space,Str "not",Space,Str "be",Space,Str "a",Space,Str "list",Space,Str "item:"]
-, Para [Str "M",Str ".",Str "A",Str ".",Space,Str "2007"]
+, Para [Str "M",Str ".",Str "A.\160",Str "2007"]
, Para [Str "B",Str ".",Space,Str "Williams"]
, HorizontalRule
, Header 1 [Str "Definition",Space,Str "Lists"]
diff --git a/tests/writer.context b/tests/writer.context
index 7c9678636..e13a906dd 100644
--- a/tests/writer.context
+++ b/tests/writer.context
@@ -444,7 +444,7 @@ Autonumbering:
Should not be a list item:
-M.A. 2007
+M.A.~2007
B. Williams
diff --git a/tests/writer.docbook b/tests/writer.docbook
index ad774f685..4860e7d66 100644
--- a/tests/writer.docbook
+++ b/tests/writer.docbook
@@ -606,7 +606,7 @@ These should not be escaped: \$ \\ \&gt; \[ \{
Should not be a list item:
</para>
<para>
- M.A. 2007
+ M.A.&nbsp;2007
</para>
<para>
B. Williams
diff --git a/tests/writer.html b/tests/writer.html
index 49bf3a691..819917c57 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.&#160;2007</p
><p
>B. Williams</p
><hr
diff --git a/tests/writer.latex b/tests/writer.latex
index 053daaeed..551d6adec 100644
--- a/tests/writer.latex
+++ b/tests/writer.latex
@@ -394,7 +394,7 @@ Autonumbering:
\end{enumerate}
Should not be a list item:
-M.A. 2007
+M.A.~2007
B. Williams
diff --git a/tests/writer.man b/tests/writer.man
index 010d6c33d..0e3b7608a 100644
--- a/tests/writer.man
+++ b/tests/writer.man
@@ -296,7 +296,7 @@ Nested\.
.PP
Should not be a list item:
.PP
-M\.A\. 2007
+M\.A\.\ 2007
.PP
B\. Williams
.PP
diff --git a/tests/writer.markdown b/tests/writer.markdown
index 387a2df38..00c75e607 100644
--- a/tests/writer.markdown
+++ b/tests/writer.markdown
@@ -269,7 +269,7 @@ Autonumbering:
Should not be a list item:
-M.A. 2007
+M.A.&nbsp;2007
B. Williams
diff --git a/tests/writer.native b/tests/writer.native
index d3c4835ed..4ecc51438 100644
--- a/tests/writer.native
+++ b/tests/writer.native
@@ -165,7 +165,7 @@ Pandoc (Meta [Str "Pandoc",Space,Str "Test",Space,Str "Suite"] ["John MacFarlane
[ [ Plain [Str "Nested",Str "."] ]
] ] ]
, Para [Str "Should",Space,Str "not",Space,Str "be",Space,Str "a",Space,Str "list",Space,Str "item:"]
-, Para [Str "M",Str ".",Str "A",Str ".",Space,Str "2007"]
+, Para [Str "M",Str ".",Str "A.\160",Str "2007"]
, Para [Str "B",Str ".",Space,Str "Williams"]
, HorizontalRule
, Header 1 [Str "Definition",Space,Str "Lists"]
diff --git a/tests/writer.rst b/tests/writer.rst
index 5a97a1e8b..b9dbc31e0 100644
--- a/tests/writer.rst
+++ b/tests/writer.rst
@@ -329,7 +329,7 @@ Autonumbering:
Should not be a list item:
-M.A. 2007
+M.A. 2007
B. Williams
diff --git a/tests/writer.rtf b/tests/writer.rtf
index 40f5a06dc..367eeba2f 100644
--- a/tests/writer.rtf
+++ b/tests/writer.rtf
@@ -148,7 +148,7 @@ These should not be escaped: \\$ \\\\ \\> \\[ \\\{\par}
{\pard \ql \f0 \sa0 \li360 \fi-360 2.\tx360\tab More.\par}
{\pard \ql \f0 \sa0 \li720 \fi-360 a.\tx360\tab Nested.\sa180\sa180\par}
{\pard \ql \f0 \sa180 \li0 \fi0 Should not be a list item:\par}
-{\pard \ql \f0 \sa180 \li0 \fi0 M.A. 2007\par}
+{\pard \ql \f0 \sa180 \li0 \fi0 M.A.\u160?2007\par}
{\pard \ql \f0 \sa180 \li0 \fi0 B. Williams\par}
{\pard \qc \f0 \sa180 \li0 \fi0 \emdash\emdash\emdash\emdash\emdash\par}
{\pard \ql \f0 \sa180 \li0 \fi0 \b \fs36 Definition Lists\par}
diff --git a/tests/writer.texinfo b/tests/writer.texinfo
index bb2ced1ba..224aa2091 100644
--- a/tests/writer.texinfo
+++ b/tests/writer.texinfo
@@ -506,7 +506,7 @@ Nested.
Should not be a list item:
-M.A. 2007
+M.A.@ 2007
B. Williams