module Linebreaks:sig
..end
This file tests the encoding of linebreak inside OCaml code by the ocamldoc html backend.
Two slightly different aspects are tested in this very file.
let f x =
let g x =
let h x = x in
h x in
g x
See MPR#6341 for more
details or the file Linebreaks.html generated by ocamldoc from this file.Modulename
in
a "code" tags.
For instance with the following type definitions,type
a =
| |
A |
type 'a
b = {
|
field : |
}
type
c =
| |
C : |
type
s = ..
type
s +=
| |
B |
val x : a
module S:sig
..end
module type s =sig
..end
class type d =object
..end
exception E of {
|
inline : |
}
type_Linebreaks.html should contain
sig
type a = A
type 'a b = { field : 'a; }
type c = C : 'a -> Linebreaks.c
type s = ..
type s += B
val x : Linebreaks.a
module S : sig module I : sig end end
module type s = sig end
class type d = object end
exception E of { inline : int; }
end
with <br> tags used for linebreaks.
Another example would be let f x =
which is rendered with a <br> linebreak inside Linebreaks.html.
x
See MPR#7272 for more information.