Eric Lapouyade
40861400b3
black
2025-05-02 16:42:32 +02:00
Eric Lapouyade
9392b06da4
add RichTextParagraph class
2025-05-02 16:29:22 +02:00
Eric Lapouyade
a48a6a96b2
Merge branch 'refs/heads/ST-Imrie-master'
2025-05-02 16:08:08 +02:00
ST-Imrie
ebc770a291
Updated RichText Jinja tags from rr/rp to r/q and updated test template
2025-05-01 11:39:48 +01:00
Alexander Pérechnev
97df786298
Added possibility to skip missing pictures instead of raising ValueError exception.
2025-04-04 17:38:56 +03:00
ST-Imrie
aa7b7a77e3
Rich Text Paragraph Formatting Update
2025-02-28 17:53:26 +00:00
Jonathan Pyle
eed645c0c5
encode XML as bytes in render_footnotes()
...
`part._blob` should have the class `bytes`.
2024-11-29 15:23:46 -05:00
Eric Lapouyade
60caff83fa
Flake8 : whitespace fix
2024-11-12 14:37:12 +01:00
Eric Lapouyade
0f42e5a4c8
v0.19.0
2024-11-12 14:27:06 +01:00
Bart Broere
0ef74a740e
Change to isinstance for type checking
2024-10-24 07:28:49 +02:00
Bart Broere
0d616add84
Apply suggestion since part.blob changes type in the loop
...
Co-authored-by: Chatnoir Miki <cmiki@amono.me>
2024-10-24 07:27:59 +02:00
Bart Broere
1cca257016
Add a test and use existing XML patching method
2024-09-23 06:24:41 +00:00
Bart Broere
a449f01f36
Fix flake8
2024-09-18 07:35:12 +00:00
Bart Broere
2812487300
Simplify the code
2024-09-17 21:19:19 +02:00
Bart Broere
2886a851e0
Change the XML library to lxml to avoid namespace renaming and other XML problems
2024-09-17 21:07:21 +02:00
Bart Broere
0061b556ec
[WIP] Support rendering variables in footnotes
2024-09-17 15:09:29 +02:00
Eric Lapouyade
a10c3c16e4
Remove python 2.x support
2024-07-21 16:42:41 +02:00
Eric Lapouyade
ac38610947
Code styling
2024-07-21 16:17:47 +02:00
Eric Lapouyade
a50b52b317
PR #552 + black all files
2024-07-21 16:10:44 +02:00
Eric Lapouyade
58de890f92
v0.17.0 -> requires python-docx 1.1.1+
2024-05-01 16:50:16 +02:00
Adrian Vorobel
af2e09209b
Fix: add whitespace to regexp, as they capture wrong xml tags (w:tc, w:tcBorders, etc.)
2023-05-05 12:44:04 +03:00
elapouya
ef09ce6277
0.16.5
2023-01-07 14:02:11 +01:00
Slarag
ce23f81cbe
Fix #464
2022-11-18 14:18:32 +01:00
Tim Gates
2fd2140caf
docs: Fix a few typos
...
There are small typos in:
- docs/index.rst
- docxtpl/__main__.py
- docxtpl/template.py
- tests/embedded.py
Fixes:
- Should read `surrounding` rather than `surronding`.
- Should read `rendering` rather than `rendring`.
- Should read `providing` rather than `provinding`.
- Should read `optionally` rather than `optionnally`.
- Should read `optional` rather than `optionnal`.
- Should read `necessary` rather than `neccessary`.
- Should read `existing` rather than `exsting`.
- Should read `embedded` rather than `embdded`.
- Should read `dictionaries` rather than `dictionnaries`.
- Should read `cleaning` rather than `cleanning`.
- Should read `catches` rather than `cacthes`.
Signed-off-by: Tim Gates <tim.gates@iress.com>
2022-07-21 08:16:56 +10:00
Eric Lapouyade
a712baff03
fix #448
2022-07-14 18:16:20 +02:00
Eric Lapouyade
5f21feb72d
fix #444
2022-07-14 15:06:21 +02:00
elapouya
7290528b3d
flake8 fix
2022-06-12 16:28:02 +02:00
Karol Zlot
bda05f2101
return None
2022-06-12 10:44:24 +02:00
Karol Zlot
25a6e42850
Reverse name changes
2022-06-12 10:43:03 +02:00
Karol Zlot
43ceb38465
Add type hints to get_undeclared_template_variables
2022-06-06 23:49:48 +02:00
Karol Zlot
2681c4801d
Add first type hints
2022-06-06 23:44:07 +02:00
Staffan Malmgren
4e073ea451
Added support for jinja comments for paragraphs and table rows+cells
2022-03-28 23:43:34 +02:00
Eric Lapouyade
23038b98de
fix #408
2022-01-12 15:25:07 +01:00
Eric Lapouyade
589262664f
fix #392
2021-12-20 12:07:12 +01:00
Eric Lapouyade
d22aeb41db
Fix #398
2021-12-19 12:18:57 +01:00
Eric Lapouyade
61c8924663
V0.12.0
2021-08-15 15:50:45 +02:00
Eric Lapouyade
bf2240f4b2
code styling
2021-07-31 14:12:22 +02:00
Eric Lapouyade
30712bbc67
Working on better subdocs
2021-07-31 12:49:47 +02:00