Skip to content

Commit 4fe1af9

Browse files
committed
test: avoid unicode characters in the middle of line
Format in OCaml 5.4 is using a better computation for character width. To avoid backward compatibility problem, this commit remove one unicode character and move another in the beginning of a paragraph.
1 parent eb5c6e5 commit 4fe1af9

File tree

8 files changed

+17
-11
lines changed

8 files changed

+17
-11
lines changed

test/generators/cases/markup.mli

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@ v}
140140
141141
{1 Unicode}
142142
143-
The parser supports any ASCII-compatible encoding, in particuλar UTF-8.
143+
The parser supports any ASCII-compatible encoding.
144+
145+
In particuλar UTF-8.
144146
145147
146148
{1 Raw HTML}

test/generators/cases/section.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ val foo : unit
2626
(** {1 {e This} [section] {b title} {_has} {^markup}}
2727
2828
But links are impossible thanks to the parser, so we never have trouble
29-
rendering a section title in a table of contents no link will be nested
29+
rendering a section title in a table of contents - no link will be nested
3030
inside another link. *)

test/generators/html/Markup.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,9 @@ <h2 id="lists"><a href="#lists" class="anchor"></a>Lists</h2>
204204
</ul>
205205
</li>
206206
</ul><h2 id="unicode"><a href="#unicode" class="anchor"></a>Unicode</h2>
207-
<p>The parser supports any ASCII-compatible encoding, in particuλar
208-
UTF-8.
209-
</p><h2 id="raw-html"><a href="#raw-html" class="anchor"></a>Raw HTML</h2>
207+
<p>The parser supports any ASCII-compatible encoding.</p>
208+
<p>In particuλar UTF-8.</p>
209+
<h2 id="raw-html"><a href="#raw-html" class="anchor"></a>Raw HTML</h2>
210210
<p>Raw HTML can be <input type="text" placeholder="inserted"> as inline
211211
elements into sentences.
212212
</p>

test/generators/html/Section.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ <h2 id="this-section-title-has-markup">
7272
<code>section</code> <b>title</b> <sub>has</sub> <sup>markup</sup>
7373
</h2>
7474
<p>But links are impossible thanks to the parser, so we never have
75-
trouble rendering a section title in a table of contents no
76-
link will be nested inside another link.
75+
trouble rendering a section title in a table of contents - no link
76+
will be nested inside another link.
7777
</p>
7878
</div>
7979
</body>

test/generators/latex/Markup.tex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ \subsection{Lists\label{lists}}%
8181
\item{\hyperref[Markup-val-foo]{\ocamlinlinecode{\ocamlinlinecode{foo}}[p\pageref*{Markup-val-foo}]}}\end{itemize}%
8282
}\end{itemize}%
8383
\subsection{Unicode\label{unicode}}%
84-
The parser supports any ASCII-compatible encoding, in particuλar UTF-8.
84+
The parser supports any ASCII-compatible encoding.
85+
86+
In particuλar UTF-8.
8587

8688
\subsection{Raw HTML\label{raw-html}}%
8789
Raw HTML can be as inline elements into sentences.

test/generators/latex/Section.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ \subsection{Empty section\label{empty-section_2}}%
1414
\subsection{within a comment\label{within-a-comment}}%
1515
\subsubsection{and one with a nested section\label{and-one-with-a-nested-section}}%
1616
\subsection{\emph{This} \ocamlinlinecode{section} \bold{title} \textsubscript{has} \textsuperscript{markup}\label{this-section-title-has-markup}}%
17-
But links are impossible thanks to the parser, so we never have trouble rendering a section title in a table of contents no link will be nested inside another link.
17+
But links are impossible thanks to the parser, so we never have trouble rendering a section title in a table of contents - no link will be nested inside another link.
1818

1919

2020

test/generators/man/Markup.3o

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,9 @@ can use explicitly-delimited lists\.
214214
.in
215215
.sp
216216
.fi
217-
The parser supports any ASCII-compatible encoding, in particuλar UTF-8\.
217+
The parser supports any ASCII-compatible encoding\.
218+
.sp
219+
In particuλar UTF-8\.
218220
.nf
219221
.sp
220222
.in 3

test/generators/man/Section.3o

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,6 @@ Foo bar\.
5858
.in
5959
.sp
6060
.fi
61-
But links are impossible thanks to the parser, so we never have trouble rendering a section title in a table of contents no link will be nested inside another link\.
61+
But links are impossible thanks to the parser, so we never have trouble rendering a section title in a table of contents - no link will be nested inside another link\.
6262
.nf
6363

0 commit comments

Comments
 (0)