Skip to content

Single-line table cell annotations ignore center/right align#117

Open
santhreal wants to merge 1 commit into
weblyzard:masterfrom
santhreal:fix/table-cell-annotation-align
Open

Single-line table cell annotations ignore center/right align#117
santhreal wants to merge 1 commit into
weblyzard:masterfrom
santhreal:fix/table-cell-annotation-align

Conversation

@santhreal

@santhreal santhreal commented Jul 18, 2026

Copy link
Copy Markdown

get_annotated_text hits WrongAnnotationSpan when single-line table cell center/right align skips horizontal_shift. This PR fixes the regression with a focused test covering the case.

Single-line TableCell.get_annotations overwrote line_width with the
padded cell width before horizontal_shift, so center and right aligned
cells kept unshifted spans and pointed at leading spaces.
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