Multiline and grid tables for Foliant
This preprocessor converts tables to multiline and grid format before creating document (very useful especially for pandoc processing). It helps to make tables in doc and pdf formats more proportional — column with more text in it will be more wide. Also it helps whith processing of extremely wide tables with pandoc. Convertation to the grid format allows arbitrary cell' content (multiple paragraphs, code blocks, lists, etc.).
Installation
$ pip install foliantcontrib.multilinetables
Config
To enable the preprocessor with default options, add multilinetables to preprocessors section in the project config:
preprocessors:
- multilinetables
The preprocessor has a number of options (best values set by default):
preprocessors:
- multilinetables:
rewrite_src_files: false
min_table_width: 100
keep_narrow_tables: true
table_columns_to_scale: 3
enable_hyphenation: false
hyph_combination: '<br>'
convert_to_grid: false
targets:
- docx
- pdf
rewrite_src_file
: You can update source files after each use of preprocessor. Be careful, previous data will be deleted.
min_table_width
: Wide markdown tables will be shrinked to this width in symbols. This parameter affects scaling - change it if table columns are merging.
keep_narrow_tables
: If true narrow tables will not be stretched to minimum table width.
table_columns_to_scale
: Minimum amount of columns to process the table.
enable_hyphenation
: Switch breaking text in table cells with the tag set in hyph_combination. Good for lists, paragraphs, etc.
hyph_combination
: Custom tag to break a text in multiline tables.
convert_to_grid
: If true tables will be converted to the grid format, that allows arbitrary cell' content (multiple paragraphs, code blocks, lists, etc.).
targets
: Allowed targets for the preprocessor. If not specified (by default), the preprocessor applies to all targets.
Usage
Just add preprocessor to the project config and enjoy the result.
Metadata
Release files for foliantcontrib.multilinetables 1.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| foliantcontrib.multilinetables-1.2.3.tar.gz | 4.8 kB | Without provenance | Details for foliantcontrib.multilinetables-1.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| foliantcontrib.multilinetables-1.2.3-py3-none-any.whl | Python 3 | none | any | Details for foliantcontrib.multilinetables-1.2.3-py3-none-any.whl |
Total release size: 10.8 kB
Release files / foliantcontrib.multilinetables-1.2.3.tar.gz
| Download URL | foliantcontrib.multilinetables-1.2.3.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
029d8ab373bf5dad3341f0ef627933039213009e14ffe1799d4c901f7c4dac9e
|
|
BLAKE2b-256 checksum How to use checksums |
ff9b44dc9cb4d885f7ff269280327a1a60fc35ff8ccebdee77085168740c8f36
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2
|
Release files / foliantcontrib.multilinetables-1.2.3-py3-none-any.whl
| Download URL | foliantcontrib.multilinetables-1.2.3-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
03b6272bd66244c040e6856801abee4016bdd4ed2fa597b85a05a08d61123e70
|
|
BLAKE2b-256 checksum How to use checksums |
5aa9c6fcdc2305c6636e915629e20266138fc9d8d3efabac1eb93f2409a1c5b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2
|
Security for foliantcontrib.multilinetables 1.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.