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

Support horizontal alignment for AsciiDoc table cells #2358

Closed
mojavelinux opened this issue Oct 24, 2022 · 0 comments
Closed

Support horizontal alignment for AsciiDoc table cells #2358

mojavelinux opened this issue Oct 24, 2022 · 0 comments

Comments

@mojavelinux
Copy link
Member

Currently, the horizontal alignment on an AsciiDoc table cell is ignored. Consider the following case:

[cols=<1a]
|===
|top right
|===

The text will be displayed on the left of the cell instead of the right.

This limitation is a consequence of how AsciiDoc table cells are implemented in Asciidoctor PDF. The content is rendered as individual child blocks inside the cell container.

However, given that most of the time a non-left alignment is specified for cells that only contain paragraph content, it's possible to support the horizontal alignment in this case by temporary modifying the base text align setting. The horizontal alignment should be honored in this case.

@mojavelinux mojavelinux added this to the v3.0.x milestone Oct 24, 2022
@mojavelinux mojavelinux self-assigned this Oct 24, 2022
mojavelinux added a commit to mojavelinux/asciidoctor-pdf that referenced this issue Oct 24, 2022
mojavelinux added a commit to mojavelinux/asciidoctor-pdf that referenced this issue Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant