Skip to content

Commit b32fddd

Browse files
author
Yuito Murase
authored
Merge pull request #77 from nyuichi/GH-47
#47: Change the default value of `fill-tail` in `Block.of-inline` to `true`
2 parents f9e520a + b4f7170 commit b32fddd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/block.satyh

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module Block : sig
99
%% [Block.read bt ctx] converts block-text [bt] into a block-boxes using context [ctx].
1010
val read : block-text -> context -> block-boxes
1111

12-
%% [Block.of-inline ?:fill-tail may-break-before may-break-after ibf ctx] transforms
12+
%% [Block.of-inline ?:(fill-tail = true) may-break-before may-break-after ibf ctx] transforms
1313
%% the inline-boxes returned by [ibf ctx] into a block-boxes by inserting
1414
%% line breaks at positions determined by context [ctx] and line break oppotunities
1515
%% included in the given inline-boxes.
@@ -46,8 +46,8 @@ end = struct
4646
let of-inline ?:fill-tail b1 b2 ibf ctx =
4747
let tail =
4848
match fill-tail with
49-
| Some(true) -> Inline.fil
50-
| _ -> Inline.nil
49+
| Some(false) -> Inline.nil
50+
| _ -> Inline.fil
5151
in line-break b1 b2 ctx ((ibf ctx) ++ tail)
5252

5353
let skip = block-skip

0 commit comments

Comments
 (0)