Skip to content
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Changelog
Unreleased
----------

* **Bugfix**: [#155] Prevent table rows from splitting across pages and table captions from separating from their tables.
* **Bugfix** [#134] Improve support for external theme packages by using a ``get_scss_sources_path()`` convention.

- If needed, theme warnings can be suppressed via ``suppress_warnings = ["simplepdf.theme"]``.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ table.docutils {
background-color: transparent;
border-spacing: 0;

caption {
page-break-after: avoid;
break-after: avoid-page;
}

td, th {
padding: .75rem;
vertical-align: top;
Expand All @@ -32,6 +37,9 @@ table.docutils {

tbody {
tr {
page-break-inside: avoid;
break-inside: avoid-page;

&.row-odd {
background: #f6f6f6;
}
Expand Down
Loading