Skip to content

Commit

Permalink
Update CHANGES and promote test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
jonludlam committed Sep 13, 2024
1 parent 14da78f commit 2baf130
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@
### Fixed

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

# 2.4.2

Expand Down
6 changes: 3 additions & 3 deletions test/generators/html/Bugs.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ <h1>Module <code><span>Bugs</span></code></h1>
</span>
<span><span class="type-var">'b</span>
<span class="arrow">&#45;&gt;</span>
</span> <span class="type-var">'c</span> *
<span class="type-var">'d</span> * <span class="type-var">'e</span>
* <span class="type-var">'f</span>
</span> <span class="type-var">'a</span> *
<span class="type-var">'b</span> * <span class="type-var">'a</span>
* <span class="type-var">'b</span>
</span>
</code>
</div>
Expand Down
2 changes: 1 addition & 1 deletion test/generators/latex/Bugs.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ \section{Module \ocamlinlinecode{Bugs}}\label{module-Bugs}%
\label{module-Bugs-type-opt}\ocamlcodefragment{\ocamltag{keyword}{type} 'a opt = \ocamltag{type-var}{'a} option}\\
\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}%
\medbreak
\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}%
\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}%
\medbreak


2 changes: 1 addition & 1 deletion test/generators/man/Bugs.3o
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ https://github\.com/ocaml/odoc/issues/101
is not fixed\.
.nf
.sp
\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
\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
.fi
.br
.ti +2
Expand Down

0 comments on commit 2baf130

Please sign in to comment.