useblocks / sphinx-simplepdf

A simple PDF builder for Sphinx documentations
https://sphinx-simplepdf.readthedocs.io
MIT License
35 stars 17 forks source link

Table and table title breaks in seperate pages #90

Open sachin-suresh-rapyuta opened 1 year ago

sachin-suresh-rapyuta commented 1 year ago

If a table with a table title appears at the end of the page, the table title ( Table: Element customization) will be at the end of the page and the table will move to the next page. This does not look good on PDF.

Example:

The available customizations are described in the following table.

.. table:: Table: Element customization
    :align: center

    +---------+-----------------------+
    | Element | Customization options |
    +=========+=======================+
    | Agent   | - Icon                |
    | Spot    | - Icon Color          |               
    +---------+-----------------------+
    | Spot    | - Icon                |
    | Icon    | - Icon Color          |
    +---------+-----------------------+
    | Region  | - Color               |
    |         | - Opacity             |
    +---------+-----------------------+