Skip to content

Commit

Permalink
Update format doc for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewgy8 committed Jan 18, 2025
1 parent be9db5e commit af35169
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docs/formats.rst
Original file line number Diff line number Diff line change
Expand Up @@ -251,16 +251,16 @@ can set to a number of lines that should be skipped before starting to read
data.

The ``export_set()`` method supports a ``column_width`` parameter. Depending on the
value you pass, the column width will be set accordingly. It can be either ``None``, an integer, or "adaptive".
If "adaptive" is passed, the column width will be unique for every column and will be
value passed, the column width will be set accordingly. It can be either ``None``, an integer, or default "adaptive".
If "adaptive" is passed, the column width will be unique and will be
calculated based on values' length. For example::

data = tablib.Dataset()
data.export('xlsx', column_width='adaptive')



.. versionchanged:: 3.3.0
.. versionchanged:: 3.8.0
The ``column_width`` parameter for ``export_set()`` was added.

.. versionchanged:: 3.1.0
Expand Down
2 changes: 0 additions & 2 deletions src/tablib/formats/_xlsx.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
""" Tablib - XLSX Support.
"""
from __future__ import annotations

import re
from io import BytesIO

Expand Down

0 comments on commit af35169

Please sign in to comment.