Skip to content

Commit 116b05f

Browse files
gpetiotjonludlam
authored andcommitted
Add a test for consecutive spaces
1 parent ef09006 commit 116b05f

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

test/generators/cases/markup.mli

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@
6060
There is no differences between [a b] and [a
6161
b].
6262
63+
Consecutive whitespaces not after a newline are conserved as they are: [a b].
64+
6365
{1 Links and references}
6466
6567
This is a {{:#} link}. It sends you to the top of this page. Links can have

test/generators/html/Markup.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ <h6 id="subparagraph"><a href="#subparagraph" class="anchor"></a>
125125
</p>
126126
<p>There is no differences between <code>a b</code> and <code>a b</code>.
127127
</p>
128+
<p>Consecutive whitespaces not after a newline are conserved as they
129+
are: <code>a b</code>.
130+
</p>
128131
<h2 id="links-and-references">
129132
<a href="#links-and-references" class="anchor"></a>Links and references
130133
</h2>

test/generators/latex/Markup.tex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ \subsection{Styling\label{styling}}%
3636

3737
There is no differences between \ocamlinlinecode{a b} and \ocamlinlinecode{a b}.
3838

39+
Consecutive whitespaces not after a newline are conserved as they are: \ocamlinlinecode{a b}.
40+
3941
\subsection{Links and references\label{links-and-references}}%
4042
This is a \href{\#}{link}\footnote{\url{\#}}. It sends you to the top of this page. Links can have markup inside them: \href{\#}{\bold{bold}}\footnote{\url{\#}}, \href{\#}{\emph{italics}}\footnote{\url{\#}}, \href{\#}{\emph{emphasis}}\footnote{\url{\#}}, \href{\#}{super\textsuperscript{script}}\footnote{\url{\#}}, \href{\#}{sub\textsubscript{script}}\footnote{\url{\#}}, and \href{\#}{\ocamlinlinecode{code}}\footnote{\url{\#}}. Links can also be nested \emph{\href{\#}{inside}\footnote{\url{\#}}} markup. Links cannot be nested inside each other. This link has no replacement text: \href{\#}{\#}\footnote{\url{\#}}. The text is filled in by odoc. This is a shorthand link: \href{\#}{\#}\footnote{\url{\#}}. The text is also filled in by odoc in this case.
4143

test/generators/man/Markup.3o

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ This is also true between non-code markup and code\.
8787
Code can appear \fBinside other markup\fR\. Its display shouldn't be affected\.
8888
.sp
8989
There is no differences between a b and a b\.
90+
.sp
91+
Consecutive whitespaces not after a newline are conserved as they are: a b\.
9092
.nf
9193
.sp
9294
.in 3

0 commit comments

Comments
 (0)