Module Linebreaks

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.


type a = 
| A
type 'a b = {
   field : 'a;
}
type c = 
| C : 'a -> 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 : int;
}

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 =
x
which is rendered with a <br> linebreak inside Linebreaks.html.

See MPR#7272 for more information.