1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-04 07:57:52 +03:00
Commit Graph

4333 Commits

Author SHA1 Message Date
Guillaume Ayoub
df25719cdb Fix background size of pages with a bleed margin
Fix #1446.
2021-09-18 18:37:37 +02:00
Guillaume Ayoub
55cf8f53f3 Merge branch 'master' of github.com:Kozea/WeasyPrint 2021-09-13 15:40:16 +02:00
Guillaume Ayoub
35fa9037fd Rename layout files to follow "display" values 2021-09-13 15:37:29 +02:00
Guillaume Ayoub
a809eff415
Merge pull request #1434 from Kozea/emojis
Draw PNG and SVG emojis
2021-09-13 15:13:11 +02:00
Guillaume Ayoub
9a720ac081 Don’t serialize and parse again inline SVG files
Fix #1443.
2021-09-12 17:40:19 +02:00
Guillaume Ayoub
174b827c16 Clean some docstrings 2021-09-12 13:45:32 +02:00
Guillaume Ayoub
37af386852 Cache SVG use tags
Fix #1439.
2021-09-11 14:57:47 +02:00
Guillaume Ayoub
223e97d99a Merge branch '53.x' 2021-09-10 14:26:02 +02:00
Guillaume Ayoub
d2e33977a6 Version 53.3 2021-09-10 14:23:32 +02:00
Guillaume Ayoub
0da2e3d379 Document optimize_size and image_cache
Related to #1439.
2021-09-10 11:33:50 +02:00
Guillaume Ayoub
434b52dd18 Merge branch '53.x' 2021-09-07 23:19:45 +02:00
Guillaume Ayoub
ff93b37333 Use a simpler way to handle image references
Related to #1440.
2021-09-07 23:18:13 +02:00
Guillaume Ayoub
f2cf74d31a Merge branch '53.x' 2021-09-07 22:27:21 +02:00
Guillaume Ayoub
dcb81430a4 Merge branch '53.x' of github.com:Kozea/WeasyPrint into 53.x 2021-09-07 22:26:40 +02:00
Guillaume Ayoub
3fd70e10b4 Don’t crash when transparent images are used twice in CSS
Fix #1440.
2021-09-07 22:25:46 +02:00
Guillaume Ayoub
32ecae2cf5 Use {…} instead of dict(…) syntax 2021-09-06 21:46:45 +02:00
Guillaume Ayoub
85e1ea1043 Don’t use "text-transform"ed text for content-based uses
This solution is far from perfect. What we could do is to have a getter/setter
for the "text" attribute of TextBox using the "original_text" attribute, so
that we’re sure that we change one when we change the other.

But… That would be much more complicated and much slower, only to solve corner
use cases.

Of course, an issue will be open soon, when someone finds one of these cases ;).

Fix #137.
2021-09-06 21:29:25 +02:00
Guillaume Ayoub
083cab037b Merge branch 'master' of github.com:Kozea/WeasyPrint 2021-09-05 19:42:05 +02:00
Guillaume Ayoub
15e7ec8bcc Don’t cut short lines 2021-09-05 19:41:44 +02:00
Guillaume Ayoub
24894a11e6 Handle in-flow children in a dedicated function 2021-09-05 19:32:19 +02:00
Guillaume Ayoub
0dfb48321b Handle linebox children in a dedicated function 2021-09-05 18:27:49 +02:00
Guillaume Ayoub
3e43578ded Handle out-of-flow children in a dedicated function 2021-09-05 18:12:42 +02:00
Guillaume Ayoub
40c7018182 Fix some comments 2021-09-05 17:54:58 +02:00
Guillaume Ayoub
965d46df73 Create a dedicated function to find last in-flow child 2021-09-05 17:50:44 +02:00
Guillaume Ayoub
c946001e33 Fix and use establishes_formatting_context 2021-09-05 17:46:20 +02:00
Rian McGuire
7c4fd020fe Fix marker-start being drawn on mid vertices 2021-09-01 10:08:13 +02:00
Lucie Anglade
5816d77b11
Merge pull request #1436 from rianmcguire/master
Fix marker-start being drawn on mid vertices
2021-09-01 10:05:54 +02:00
Rian McGuire
e4734e05ca Fix marker-start being drawn on mid vertices 2021-09-01 12:38:09 +10:00
Guillaume Ayoub
17cf6239b5 Fix the "contents" value of bookmark-label 2021-08-31 16:42:26 +02:00
Guillaume Ayoub
31cd0d7233 Fix the "contents" value of bookmark-label 2021-08-31 16:38:51 +02:00
Guillaume Ayoub
fc4a771a6b Add TODOs for multiple stacks 2021-08-31 14:16:08 +02:00
Guillaume Ayoub
32eb7c2abb Remove emoji tables 2021-08-30 15:00:04 +02:00
Guillaume Ayoub
cb97228c04 Initial support of SVG emojis
Related to #1406.
2021-08-30 11:10:24 +02:00
Guillaume Ayoub
8ef8c39a03 Initial support of PNG emojis
Related to #1406.
2021-08-29 19:34:28 +02:00
Guillaume Ayoub
64d04c47b6 Merge branch '53.x' 2021-08-27 22:01:02 +02:00
Guillaume Ayoub
228520d8e6 Handle cx and cy in SVG rotations
Fix #1430.
2021-08-27 21:59:34 +02:00
Guillaume Ayoub
4423036ea6 Merge branch '53.x' 2021-08-27 16:46:34 +02:00
Guillaume Ayoub
40537a64d9 Use references in images too
Fix #1431.
2021-08-27 16:44:48 +02:00
Guillaume Ayoub
6930a7d358 Fix some resume_at and skip_stack variables in flex
Related to #1429.
2021-08-27 15:18:23 +02:00
Guillaume Ayoub
d3e39055cf Merge branch '53.x' 2021-08-27 14:48:59 +02:00
Guillaume Ayoub
229fba67a1 Revert "Remove the bookmark example from documentation"
This reverts commit 98c38c904d.
2021-08-27 14:47:19 +02:00
Guillaume Ayoub
d30faf3738 Version 53.2 2021-08-27 14:44:53 +02:00
Guillaume Ayoub
c51bc60764 Re-add make_bookmark_tree method
Fix #1428.
2021-08-27 14:43:17 +02:00
Guillaume Ayoub
bb29eca337 Transform text-align into shorthand
text-align is now a shorthand, setting text-align-all and text-align-last.

Related to #1389.
2021-08-24 13:27:59 +02:00
Guillaume Ayoub
412b589df9 Fix lint 2021-08-24 13:00:03 +02:00
Guillaume Ayoub
7192030d46
Merge pull request #1389 from ColinKinloch/text_align_last
Add text-align-last
2021-08-24 12:53:51 +02:00
Guillaume Ayoub
61ff7f0e1c Handle full "display" property
In CSS Display Module Level 3, the "display" property gets a long
representation allowing:

- a clear separation between inner and outer display type,
- new supported types (contents, run-in, flow-root…),
- inline list items.

This commit allows the (retrocompatible) new long syntax for "display". It also
supports the "flow-root" value. It doesn’t support values related to ruby, and
it doesn’t support the new "contents" and "run-in" display types.

This work gives the possibility to simplify the code in the block_*_layout
functions, and to improve the overall layout.

Related to #36.
2021-08-23 21:54:28 +02:00
Guillaume Ayoub
c3aebeef08 Fix link to Attachment in documentation 2021-08-23 21:54:16 +02:00
Guillaume Ayoub
f7377610c8 Add the finisher option to HTML.write_pdf 2021-08-23 09:47:49 +02:00
Guillaume Ayoub
0da6b043a7 Merge branch '53.x' 2021-08-22 15:41:55 +02:00