File tree 2 files changed +7
-10
lines changed
test/integration/markdown.t
2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ type args = { generate_links : bool }
18
18
let rec source_contains_text (s : Source.t ) =
19
19
let inline_contains_text (i : Inline.t ) =
20
20
let check_inline_desc (i : Inline.desc ) =
21
- match i with Text "" -> false | Text _ | _ -> true
21
+ match i with Text "" | Text " " -> false | Text _ | _ -> true
22
22
in
23
23
List. exists (fun { Inline. desc = d ; _ } -> check_inline_desc d) i
24
24
in
@@ -71,10 +71,7 @@ and inline (l : Inline.t) args =
71
71
++ continue rest)
72
72
(continue content ++ continue rest)
73
73
| InternalLink (Unresolved content ) -> continue content ++ continue rest
74
- | Source content ->
75
- cond
76
- (source_code content args ++ continue rest)
77
- (source_code content args ++ continue rest)
74
+ | Source content -> source_code content args ++ continue rest
78
75
| Raw_markup _ -> noop
79
76
(* TODO: handle this well! *) )
80
77
Original file line number Diff line number Diff line change 1
1
$ ocamlc -c -bin-annot test. mli
2
2
$ odoc compile test. cmti
3
- File " test.mli" , line 39 , characters 13 -22:
3
+ File " test.mli" , line 41 , characters 13 -22:
4
4
Warning: ' {foo_bar}' : bad markup.
5
5
Suggestion: did you mean ' {!foo_bar}' or ' [foo_bar]' ?
6
6
$ odoc link test. odoc
22
22
23
23
# ##### type y'
24
24
25
- # ##### module Bar : sig ... end
25
+ # ##### module Bar : sig ... end
26
26
27
- # ##### module type Foo = sig
27
+ # ##### module type Foo = sig
28
28
29
29
# ##### type foo
30
30
31
31
docs for x
32
32
33
- # ##### module type Foo' = sig
33
+ # ##### module type Foo' = sig
34
34
35
35
# ##### type foo'
36
36
117
117
118
118
David Sheets
119
119
120
- # ##### module Foo : sig ... end
120
+ # ##### module Foo : sig ... end
121
121
122
122
The end foo end keyword in doc comment.
123
123
You can’t perform that action at this time.
0 commit comments