1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-05 00:21:15 +03:00
Commit Graph

255 Commits

Author SHA1 Message Date
Guillaume Ayoub
2d19becf19 Improve SVG support 2021-04-30 18:13:08 +02:00
Guillaume Ayoub
1882174a57
Merge branch 'master' into leader 2021-03-11 15:48:31 +01:00
Guillaume Ayoub
da1219248a Prevent discarded boxes’ children from extending to the page bottom 2021-03-02 13:06:53 +01:00
Guillaume Ayoub
9eba07d0ac Merge branch 'master' into line-clamp 2021-02-23 12:38:08 +01:00
Guillaume Ayoub
694a926ec0 Fix height of "continue: discard" blocks 2021-02-23 12:12:48 +01:00
Guillaume Ayoub
cbc6322022 Split block-ellipsis and text-overflow implementations
The two properties work in very different ways, as described by the
specification. text-overflow only draws ellipsis at the end of the line, but
block-ellipsis requires a clean line break at word boundaries.
2021-01-22 19:40:59 +01:00
Guillaume Ayoub
82007aeb17 Remove many getattrs 2021-01-20 22:14:44 +01:00
Guillaume Ayoub
8193c72215 Avoid hasattr when possible 2021-01-20 15:18:01 +01:00
Guillaume Ayoub
c463fae778 Improve and clean line breaks for leaders 2021-01-18 15:49:33 +01:00
Guillaume Ayoub
a7511e3cff Clean the way boxes are created in "content" 2021-01-11 14:38:20 +01:00
Guillaume Ayoub
ff9888285c Initial support of leaders 2021-01-11 14:38:20 +01:00
Guillaume Ayoub
12999bded8 Merge branch 'master' into pydyf 2020-10-23 12:36:03 +02:00
Tontyna
80b9fefb4e Compute bookmark-label for :before and :after boxes 2020-06-19 08:23:20 +02:00
Guillaume Ayoub
9372b94e8d Clean formatted strings 2020-05-30 15:55:44 +02:00
Guillaume Ayoub
ebe958e2cc Prefer while True to while 1 2020-05-22 00:14:15 +02:00
Guillaume Ayoub
dc443ab30d Remove naughty comma
Fix #1114.
2020-05-15 11:54:00 +02:00
Guillaume Ayoub
34ad3b5050 Merge branch 'master' into clean 2020-01-07 22:36:38 +01:00
Guillaume Ayoub
cb610e88f0 Support counter-set
Code was sleeping commented since December 2011 and could have been working in
WeasyPrint 0.3. Easiest feature ever thanks to @SimonSapin.

Fix #1019.
2020-01-06 22:45:37 +01:00
Guillaume Ayoub
b40ad461be Remove repeated copyright assignments in files
Everything is replaced by a more explicit message in the COPYRIGHT file.

Inspired by rust-lang/rust#43498 and rust-lang/rust#57108.
2020-01-02 14:10:09 +01:00
Guillaume Ayoub
47ec97bcaf Remove useless explicit object inheritance 2020-01-02 12:06:58 +01:00
Guillaume Ayoub
aed8b09543 Fix extended counters 2019-12-30 18:04:23 +01:00
Guillaume Ayoub
429f979438 Fix tests 2019-12-27 14:14:47 +01:00
Guillaume Ayoub
0a65f0d40b Handle most of the counter-style use cases 2019-12-27 02:14:24 +01:00
Guillaume Ayoub
c8f041f32c Handle more counter types 2019-12-24 16:42:12 +01:00
Guillaume Ayoub
2da6ff3909 Add default counter class 2019-12-24 15:56:24 +01:00
Guillaume Ayoub
a036fe8f4b Remove counters.py 2019-12-24 15:18:10 +01:00
Guillaume Ayoub
73244891f4 Add base code for @counter-style rules 2019-12-24 14:39:40 +01:00
Guillaume Ayoub
c02e5c2f78 Remove underscore from _remove_decoration 2019-12-23 23:13:05 +01:00
Guillaume Ayoub
5a8c81eea2 Merge branch 'master' into fix_943 2019-12-23 22:01:58 +01:00
Guillaume Ayoub
4865b97a22 Remove useless super() arguments 2019-12-23 15:34:49 +01:00
Guillaume Ayoub
916e34f637 Handle the second argument of element() 2019-12-22 15:52:48 +01:00
Guillaume Ayoub
0fe6981c04 Fix corner cases for running elements
Fix #967.
2019-12-22 15:15:42 +01:00
Guillaume Ayoub
3ff431c543 Add warning when running element is unknown 2019-12-22 14:42:21 +01:00
Guillaume Ayoub
3f74dd98b9 Don’t call page_values twice when it’s not needed
Fix #1013.
2019-12-22 00:11:34 +01:00
Guillaume Ayoub
23a93a8cd0 Allow a second agrument for element() 2019-12-19 15:15:59 +01:00
Guillaume Ayoub
7eacb711a7 Merge branch 'master' into fix_943 2019-12-15 15:26:00 +01:00
Tontyna
3d4f18b916 Add html element to Box class
Unless the Box is a PageBox or a MarginBox the new attribute `element` points
to the html element (xml.etree.ElementTree.Element) where the Box stems from.
This enables e.g. post-processing that depends on Element attributes, like
'class' or 'id'.

Caution: Elements with no subelements will test as False! Test the element's
existence with `if box.element is not None:`.

Related to #434, #970.
2019-10-17 23:41:36 +02:00
Guillaume Ayoub
0a403d9d16 Remove RunningPlaceholder 2019-09-27 11:53:30 +02:00
Guillaume Ayoub
d9432a72f5 Remove the Running class 2019-09-27 11:34:36 +02:00
Guillaume Ayoub
6b3ce39c5c Add the deepcopy method to all boxes 2019-09-27 11:18:22 +02:00
Guillaume Ayoub
5cb24e2cbc Explicitely remove box decorations when needed 2019-09-24 18:42:25 +02:00
Guillaume Ayoub
b4ff03c7a8 Don't modify style for border-radius when splitting boxes
Related to #943, #948
2019-09-24 14:30:37 +02:00
Guillaume Ayoub
7e8424178e Remove style copy for broken inline boxes 2019-09-23 16:52:53 +02:00
Guillaume Ayoub
ca0fd0239f Don't edit style when splitting boxes
Fix #943.
2019-09-23 12:09:07 +02:00
Holger Brunn
b30ffb1694
[ADD] position: running(); content: element(); 2019-09-22 23:21:31 +02:00
Guillaume Ayoub
fbf3467240 Fix position of marker box
The marker box is generated by the ::marker pseudo-element of a list item as
the list item’s first child […].

The old behavior was done because of the fuzzy "[With list-style-position:
outside], If the list item is a block container: the marker box is outside the
principal block box […]". Outside here probably means that the box is drawn
outside, not that it's not a child of the list item box.

Related to #945.
2019-09-18 14:57:25 +02:00
Guillaume Ayoub
074d147611
Merge pull request #922 from Kozea/perf
Improve performance
2019-09-03 12:29:48 +02:00
Tontyna
8277462bee Dont use deprecated Logger.warn 2019-08-26 10:16:31 +02:00
Guillaume Ayoub
2ee4516786 Handle the ::marker pseudo-element
Fix #700.
2019-08-07 23:01:41 +02:00
Guillaume Ayoub
997882514e Fix the way display is set when no box is generated from tree
Add related tests too.
2019-07-18 11:22:07 +02:00