Benker

Latest version: v0.5.4

Safety actively analyzes 621892 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 3

0.4.3

===================

Bug fix release

Fixed
-----

Fix `5 <https://github.com/laurent-laporte-pro/benker/issues/5>`_: The title generation should be optional.

* Change in the :class:`~benker.builders.formex4.Formex4Builder` class:
Add the *detect_titles* option: if this option is enable, a title will be generated
if the first row contains an unique cell with centered text.
The *detect_titles* options is disable by default.

Other
-----

Change in the documentation: update the URL of the Formex documentation, use:
`<https://op.europa.eu/en/web/eu-vocabularies/formex/>`_.

0.4.2

===================

Bug fix release

Fixed
-----

Fix `1 <https://github.com/laurent-laporte-pro/benker/issues/1>`_: Cell nature should inherit row nature by default.

* Change in the class :class:`~benker.styled.Styled`:
The default value of the *nature* parameter is ``None`` (instead of "body").

* Change in the methods :meth:`~benker.table.RowView.insert_cell` and :meth:`~benker.table.ColView.insert_cell`
The *nature* of a cell is inherited from its parent's row (or column).

Other
-----

* Change the requirements for Sphinx: add 'requests[security]' for Python 2.7.

* Fix an issue with the AppVeyor build: change the Tox configuration: set ``py27,py34,py35: pip >= 9.0.3``.

0.4.1

===================

Bug fix release

Fixed
-----

* Change in the parser :class:`~benker.parsers.ooxml.OoxmlParser`:
fix the 'x-sect-cols' value extraction when the ``w:sectPr`` is missing (use "1" by default).

* Fix the Formex4 builder :class:`~benker.builders.formex4.Formex4Builder`:
Generate a ``<IE/>`` element if the cell content (the string representation) is empty.

0.4.0

===================

Feature release

Added
-----

* New converter: :func:`~benker.converters.ooxml2formex4.convert_ooxml2formex4`:
Convert Office Open XML (OOXML) tables to Formex4 tables.

* New builder: :class:`~benker.builders.formex4.Formex4Builder`:
Formex4 builder used to convert tables into ``TBL`` elements.

* Change in the parser :class:`~benker.parsers.ooxml.OoxmlParser`:

- The section width and height are now stored in the 'x-sect-size' table style (units in 'pt').

* Change in the builder :class:`~benker.builders.base_builder.BaseBuilder`:
Add the method :meth:`~benker.builders.base_builder.BaseBuilder.finalize_tree`:
Give the opportunity to finalize the resulting tree structure.

0.3.0

===================

Feature release

Added
-----

* Change in the parser :class:`~benker.parsers.ooxml.OoxmlParser`:

- Parse cell ``w:tcPr/w:vAlign`` values.

- Parse paragraph alignments to calculate cell horizontal alignments.

- Parse cell ``w:tcPr/w:tcBorders`` values to extract border styles.

* Change in the builder :class:`benker.builders.cals.CalsBuilder`:

- Generate ``entry/valign`` attributes.

- Generate ``entry/align`` attributes.

- Generate ``entry/colsep`` and ``entry/rowsep`` attributes.

Changed
-------

* Change in the parser :class:`~benker.parsers.ooxml.OoxmlParser`:

- Add more supported `border styles <http://www.datypic.com/sc/ooxml/t-w_ST_Border.html>`_

0.2.2

===================

Bug fix release

Added
-----

* Add a Python alternative to :class:`lxml.etree.iterwalk` if using lxml < 4.2.1.
See `lxml changelog v4.2.1 <https://lxml.de/4.2/changes-4.2.1.html>`_.

Fixed
-----

* Fix the implementation of :meth:`~benker.parsers.ooxml.OoxmlParser.parse_table`:
use a new implementation of :class:`lxml.etree.iterwalk` if using lxml < 4.2.1.

Other
-----

* Change Tox configuration file to test the library with lxml v3 and v4.

* Add a changelog in the documentation.

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.