Jean Marcos da Rosa
e0d5eb0e0a
Added hyperlink option in InlineImage
2024-07-09 10:33:26 -03:00
Eric Lapouyade
58de890f92
v0.17.0 -> requires python-docx 1.1.1+
2024-05-01 16:50:16 +02:00
Eric Lapouyade
d539119fed
PR #493
2023-05-08 11:15:41 +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
d9801fd6e4
PR #482
2023-03-12 11:04:03 +01:00
geb
9af9d9e69b
fixed element properties for highlighted text
2023-03-01 09:07:18 +01: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
Eric Lapouyade
4857a6ed72
Modify PR to be more generic
2022-08-04 10:27:02 +02:00
Eric Lapouyade
ea987f9e38
Merge branch 'master' of https://github.com/sailingnn/python-docx-template into sailingnn-master
2022-08-04 09:46:44 +02:00
sailingnn
0660a0f37e
Update richtext.py
...
add support for eastAsia fonts in RichText
2022-07-21 09:01:30 +08: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
elapouya
c1f994e632
Changed escape.py test, see #346
2022-05-21 15:06:24 +02:00
Eric Lapouyade
d283f3f88a
PR #427
2022-04-16 10:58:42 +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
e574b6c650
remove f-string for python < 3.6 compability
2021-12-20 16:31:29 +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
e3e1ab58d1
Fix typo
2021-10-01 16:09:11 +02:00
Eric Lapouyade
727d07fa3e
Changed code to be python < 3.6 compatible
2021-10-01 12:34:32 +02:00
Eric Lapouyade
0238472033
Changed code to be python < 3.6 compatible
2021-10-01 12:29:56 +02:00
Eric Lapouyade
5e8aeae272
Changed code to be python < 3.6 compatible
2021-10-01 12:25:45 +02:00
Eric Lapouyade
5dfe448a9a
Changed code to be python < 3.6 compatible
2021-10-01 12:20:46 +02:00
Eric Lapouyade
541d5ce7cb
Changed code to be python < 3.6 compatible
2021-10-01 12:11:43 +02:00
Eric Lapouyade
b0a5de05aa
Codestyling
2021-10-01 08:31:19 +02:00
Eric Lapouyade
1f3ef9b236
Add quiet option, update doc, modify test
2021-09-30 17:08:05 +02:00
Lucas
7b2d7e1946
Added argument for overwrite without confirmation and constants for easier referencing of arguments
2021-09-30 09:39:40 -03:00
Lucas
2dee2ddd1c
Small change in error message for main()
2021-09-29 13:04:47 -03:00
Lucas
5f3fe03108
Small change in error catching in validate function
2021-09-29 11:04:42 -03:00
Lucas
b6f9c992f5
Added function for rendering docx instead of directly calling method on DocxTemplate instance. Added exception chaining to a few functions there were missing it.
2021-09-29 10:35:26 -03:00
Lucas
a78462ee0f
Reformat, added comments and small fixes in error catching
2021-09-29 09:46:16 -03:00
Lucas
8004fcf6bc
Added basic functionality to make the module executable
2021-09-28 15:25:09 -03:00
Lucas
a45cc806d8
Added basic functionality to make the module executable
2021-09-28 15:12:29 -03:00
Eric Lapouyade
61c8924663
V0.12.0
2021-08-15 15:50:45 +02:00
Eric Lapouyade
b7d782ab20
Should solve #372
2021-08-15 02:58:50 +02:00
Eric Lapouyade
bf2240f4b2
code styling
2021-07-31 14:12:22 +02:00
Eric Lapouyade
ab61d39847
code styling
2021-07-31 13:53:44 +02:00
Eric Lapouyade
30712bbc67
Working on better subdocs
2021-07-31 12:49:47 +02:00
Eric Lapouyade
ba9a4629e9
PR #351
2021-05-09 12:36:28 +02:00
Alan Evangelista
63cd4c31f7
Also look for title and description when replacing pictures
...
Before, the only searched picture tag was 'name', which corresponds to the file
name of the image added to the docx. Also searching in title and description tags
makes creating docx templates to be rendered by this more flexible and easier
in document editors which do not support viewing the image's original filename,
such as Google Docs.
Also, picture replacement was comprised of picture map creation and picture
replacing. Both processes were merged in order to implement the above change
more easily.
2021-05-05 18:21:42 -03:00
Alan Evangelista
d90087d6f7
Rename pic_to_replace to pics_to_replace
...
Latter name is more intuitive because this dictionary may hold the metadata
of several pictures.
2021-04-20 11:59:49 -03:00
Eric Lapouyade
30578cf88c
InlineImage now possible in header/footer
2021-04-06 09:46:57 +02:00