Skip to content

Commit 2baf130

Browse files
committed
Update CHANGES and promote test cases
1 parent 14da78f commit 2baf130

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

CHANGES.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33
### Fixed
44

55
- Fix missing katex headers (@panglesd, #1096)
6-
- Allow `][` in code blocks, fixing issue #1137 (@Julow, #1149, #xxxx)
6+
- Allow `][` in code blocks, fixing issue #1137 (@Julow, #1149)
77
This was interpreted as "code blocks with result", which now mandates a
88
delimiter: `{delim@lang[ code ]delim[ result ]}`
9+
- Fix misprinting of type variables from ml files for OCaml 4.14 and later
10+
(multiple occurences of the same type variable could be named differently)
11+
(@octachron, #1173)
912

1013
# 2.4.2
1114

test/generators/html/Bugs.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ <h1>Module <code><span>Bugs</span></code></h1>
5050
</span>
5151
<span><span class="type-var">'b</span>
5252
<span class="arrow">&#45;&gt;</span>
53-
</span> <span class="type-var">'c</span> *
54-
<span class="type-var">'d</span> * <span class="type-var">'e</span>
55-
* <span class="type-var">'f</span>
53+
</span> <span class="type-var">'a</span> *
54+
<span class="type-var">'b</span> * <span class="type-var">'a</span>
55+
* <span class="type-var">'b</span>
5656
</span>
5757
</code>
5858
</div>

test/generators/latex/Bugs.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ \section{Module \ocamlinlinecode{Bugs}}\label{module-Bugs}%
22
\label{module-Bugs-type-opt}\ocamlcodefragment{\ocamltag{keyword}{type} 'a opt = \ocamltag{type-var}{'a} option}\\
33
\label{module-Bugs-val-foo}\ocamlcodefragment{\ocamltag{keyword}{val} foo : \ocamltag{optlabel}{?bar}:\ocamltag{type-var}{'a} \ocamltag{arrow}{$\rightarrow$} unit \ocamltag{arrow}{$\rightarrow$} unit}\begin{ocamlindent}Triggers an assertion failure when \href{https://github.com/ocaml/odoc/issues/101}{https://github.com/ocaml/odoc/issues/101}\footnote{\url{https://github.com/ocaml/odoc/issues/101}} is not fixed.\end{ocamlindent}%
44
\medbreak
5-
\label{module-Bugs-val-repeat}\ocamlcodefragment{\ocamltag{keyword}{val} repeat : \ocamltag{type-var}{'a} \ocamltag{arrow}{$\rightarrow$} \ocamltag{type-var}{'b} \ocamltag{arrow}{$\rightarrow$} \ocamltag{type-var}{'c} * \ocamltag{type-var}{'d} * \ocamltag{type-var}{'e} * \ocamltag{type-var}{'f}}\begin{ocamlindent}Renders as \ocamlinlinecode{val repeat : 'a -> 'b -> 'c * 'd * 'e * 'f} before https://github.com/ocaml/odoc/pull/1173\end{ocamlindent}%
5+
\label{module-Bugs-val-repeat}\ocamlcodefragment{\ocamltag{keyword}{val} repeat : \ocamltag{type-var}{'a} \ocamltag{arrow}{$\rightarrow$} \ocamltag{type-var}{'b} \ocamltag{arrow}{$\rightarrow$} \ocamltag{type-var}{'a} * \ocamltag{type-var}{'b} * \ocamltag{type-var}{'a} * \ocamltag{type-var}{'b}}\begin{ocamlindent}Renders as \ocamlinlinecode{val repeat : 'a -> 'b -> 'c * 'd * 'e * 'f} before https://github.com/ocaml/odoc/pull/1173\end{ocamlindent}%
66
\medbreak
77

88

test/generators/man/Bugs.3o

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ https://github\.com/ocaml/odoc/issues/101
2424
is not fixed\.
2525
.nf
2626
.sp
27-
\f[CB]val\fR repeat : \f[CB]'a\fR \f[CB]\->\fR \f[CB]'b\fR \f[CB]\->\fR \f[CB]'c\fR * \f[CB]'d\fR * \f[CB]'e\fR * \f[CB]'f\fR
27+
\f[CB]val\fR repeat : \f[CB]'a\fR \f[CB]\->\fR \f[CB]'b\fR \f[CB]\->\fR \f[CB]'a\fR * \f[CB]'b\fR * \f[CB]'a\fR * \f[CB]'b\fR
2828
.fi
2929
.br
3030
.ti +2

0 commit comments

Comments
 (0)