Skip to content

Anchor col_cont_msg labels to viewport edges and support per-side text#22

Merged
billdenney merged 2 commits intomainfrom
feature/col-cont-msg-viewport-edge
Mar 25, 2026
Merged

Anchor col_cont_msg labels to viewport edges and support per-side text#22
billdenney merged 2 commits intomainfrom
feature/col-cont-msg-viewport-edge

Conversation

@billdenney
Copy link
Copy Markdown
Member

Column continuation labels are now drawn with their centre at the viewport edge (x=0 left, x=1 right) rather than adjacent to the table columns, so a centred table no longer causes the labels to float in the middle of the page. Margins provide the surrounding space.

col_cont_msg now accepts a length-1 or length-2 character vector (recycled to length 2, mirroring row_cont_msg). The default distinguishes direction: left="Columns continue from prior page", right="Columns continue to next page". A single string is still accepted and recycled to both sides.

billdenney and others added 2 commits March 24, 2026 21:57
Column continuation labels are now drawn with their centre at the
viewport edge (x=0 left, x=1 right) rather than adjacent to the table
columns, so a centred table no longer causes the labels to float in the
middle of the page. Margins provide the surrounding space.

col_cont_msg now accepts a length-1 or length-2 character vector
(recycled to length 2, mirroring row_cont_msg). The default distinguishes
direction: left="Columns continue from prior page", right="Columns
continue to next page". A single string is still accepted and recycled
to both sides.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…icer vignette NOTE

When a column split is detected and col_cont_msg is set, perform a second pass
of compute_col_widths() with content width reduced by half a character-height at
each labelled viewport edge, preventing table content from overlapping the
rotated annotations.  compute_col_widths() now measures and returns
col_cont_label_half_w from within its existing scratch device.

Also replace officer::fp_border() in v07-flextable.Rmd with the flextable-native
fp_border_default(), removing the undeclared 'officer' dependency that caused a
CRAN NOTE.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@billdenney billdenney merged commit 69df679 into main Mar 25, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant