Skip to content
Merged
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
29 changes: 29 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,32 @@
1.1.0 (2026-12-05)
------------------

- Docform now needs Python 3.10 or newer, the oldest version CI tests.
- ``render_async()`` and ``save_async()`` run a render or save in a worker thread so they don't
block an asyncio event loop.
- ``new_subdoc()`` also takes a python-docx ``Document`` or a ``DocxTemplate``, and is faster
for documents already in memory.
- ``replace_pic()`` can set the size of the new picture.
- ``RichTextParagraph.add()`` takes ``rtl`` for right-to-left text.
- ``get_undeclared_template_variables(nested=True)`` returns dotted paths like ``order.total``
instead of just ``order``.
- Images in headers, footers and footnotes get drawing ids that are unique across the whole
document. Two headers with a logo each, or an image loop in a header, used to repeat ids.
- Shapes and text boxes repeated by a loop get their own ids, so Word no longer reports the
file as corrupted.
- Rendering large templates is linear again; templates with tens of thousands of variables
took minutes.
- Tables without a ``w:tblGrid`` render instead of failing.
- Tables no longer get narrower after ``{%tc for %}`` adds columns, since cell widths now follow
the resized grid, and a nested table no longer changes the grid of the table around it.
- Cell properties stay in schema order after ``{% vm %}``, ``{% hm %}``, ``colspan`` and
``cellbg``, which Word could reject.
- Section breaks on a ``{%p %}`` tag paragraph are kept.
- An empty ``RichText`` is falsy, so ``{% if rt %}`` works as expected.
- ``\r\n`` and ``\r`` in values become line breaks, like ``\n``.
- Docs for filters that return ``RichText`` or ``InlineImage``, and for multilevel list
numbering in subdocs.

1.0.2 (2026-11-22)
------------------

Expand Down
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ type: software
authors:
- family-names: Chippagiri
given-names: Srinivas
version: 1.0.2
version: 1.1.0
license: LGPL-2.1-only
repository-code: "https://github.com/cvas22/docform"
abstract: >-
Expand Down
2 changes: 1 addition & 1 deletion docform/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Docform: fill document templates with data.
"""

__version__ = "1.0.2"
__version__ = "1.1.0"

# flake8: noqa
from .docx import InlineImage, Listing, RichText, R, RichTextParagraph, RP
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@
# built documents.
#
# The short X.Y version.
version = "1.0"
version = "1.1"
# The full version, including alpha/beta/rc tags.
release = "1.0.2"
release = "1.1.0"

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down