Skip to content

Commit 14e828c

Browse files
committed
Children order: compat
1 parent 964e360 commit 14e828c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/model/frontmatter.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ let parse_child c =
2222

2323
let parse s =
2424
let entries =
25-
s |> String.split_on_char '\n'
25+
s
26+
|> Astring.String.cuts ~sep:"\n"
2627
|> List.map (fun l ->
2728
l |> fun x ->
2829
Astring.String.cut ~sep:":" x |> function

src/odoc/indexing.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,9 @@ let compile out_format ~output ~warnings_options ~occurrences ~lib_roots
163163
let children_order = fm.Frontmatter.children_order in
164164
(id, title, children_order))
165165
(List.filter_map
166-
(function
167-
| Paths.Identifier.(
168-
({ iv = #LeafPage.t_pv; _ } as id), pl, fm) ->
166+
Paths.Identifier.(
167+
function
168+
| ({ iv = #LeafPage.t_pv; _ } as id), pl, fm ->
169169
Some (id, pl, fm)
170170
| _ -> None)
171171
pages)

0 commit comments

Comments
 (0)