Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix paddings of inline-frame-outer #464

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading