@@ -388,7 +388,9 @@ and constructor
388388 | _ -> false
389389 in
390390 let ret_type =
391- Markup. keyword (if constant then " : " else " -> " ) ::
391+ pcdata " " ::
392+ (if constant then Markup. keyword " :" else Markup. arrow) ::
393+ pcdata " " ::
392394 type_expr ~get_package te
393395 in
394396 true , ret_type
@@ -720,14 +722,14 @@ and type_expr
720722 | Arrow (None, src , dst ) ->
721723 let res =
722724 type_expr ~needs_parentheses: true ~get_package src @
723- Markup. keyword " -> " :: type_expr ~get_package dst
725+ pcdata " " :: Markup. arrow :: pcdata " " :: type_expr ~get_package dst
724726 in
725727 if not needs_parentheses then res else pcdata " (" :: res @ [pcdata " )" ]
726728 | Arrow (Some lbl , src , dst ) ->
727729 let res =
728730 pcdata (string_of_label lbl ^ " :" ) ::
729731 type_expr ~needs_parentheses: true ~get_package src @
730- Markup. keyword " -> " :: type_expr ~get_package dst
732+ pcdata " " :: Markup. arrow :: pcdata " " :: type_expr ~get_package dst
731733 in
732734 if not needs_parentheses then res else pcdata " (" :: res @ [pcdata " )" ]
733735 | Tuple lst ->
@@ -873,11 +875,11 @@ and class_decl
873875 (* TODO: factorize the following with [type_expr] *)
874876 | Arrow (None, src , dst ) ->
875877 type_expr ~needs_parentheses: true ~get_package src @
876- Markup. keyword " -> " :: class_decl ~get_package dst
878+ pcdata " " :: Markup. arrow :: pcdata " " :: class_decl ~get_package dst
877879 | Arrow (Some lbl , src , dst ) ->
878880 pcdata (string_of_label lbl ^ " :" ) ::
879881 type_expr ~needs_parentheses: true ~get_package src @
880- Markup. keyword " -> " :: class_decl ~get_package dst
882+ pcdata " " :: Markup. arrow :: pcdata " " :: class_decl ~get_package dst
881883
882884and class_ ~get_package (t : _ Types.Class.t ) =
883885 let name = Identifier. name t.id in
0 commit comments