Skip to content

Commit

Permalink
fix how to deal with paddings of inline-frame-outer
Browse files Browse the repository at this point in the history
  • Loading branch information
gfngfn committed Oct 20, 2024
1 parent 5d36c3c commit 5fc4746
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/backend/lineBreak.ml
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,9 @@ let convert_pure_box_for_line_breaking_scheme (type a) (listf : horz_box list ->
| PHGOuterFrame{ paddings = pads; decoration; contents = hbs } ->
let lphbs = listf hbs in
let (widinfo_sub, hgt, dpt) = get_total_metrics lphbs in
let (_lphbs_new, widinfo_total) = append_horz_padding_pure lphbs widinfo_sub pads in
let (lphbs_new, widinfo_total) = append_horz_padding_pure lphbs widinfo_sub pads in
let metrics = (widinfo_total, hgt +% pads.paddingT, dpt -% pads.paddingB) in
puref (LBOuterFrame{ metrics; decoration; contents = lphbs })
(* TODO: doubtful; maybe should use `lphbs_new` for `contents` *)
puref (LBOuterFrame{ metrics; decoration; contents = lphbs_new })

| PHGInnerFrame{ paddings = pads; decoration = deco; contents = hbs } ->
let lphbs = listf hbs in
Expand Down

0 comments on commit 5fc4746

Please sign in to comment.