Guillaume Ayoub
f6f9f144c2
Handle most cases for boxes avoiding flots in rtl containers
...
Fix #1110 .
2020-05-22 17:09:17 +02:00
Guillaume Ayoub
b06406d4d3
Handle rtl when avoiding floats
2020-03-14 19:24:31 +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
7efd1e135f
Fix width of replaced boxes with no intrinsic width
...
Fix #901 .
2019-07-24 15:18:38 +02:00
Guillaume Ayoub
7071e36ce4
Remove device_size parameter everywhere
...
The device_size parameter was passed to many layout features, but it was only
used to set default size of replaced boxes with no implicit or explicit size
set. As this case is really rare for printed documents, and as it's also rare
to have printed supports that small, we can remove this "feature".
Moreover, in CSS3-images, another definition called "default object size" is
used to set replaced box size when no size is defined. This size doesn't seem
to be defined for images.
2019-07-11 17:17:28 +02:00
Guillaume Ayoub
a23d4658fc
Set marker layout only when needed
2019-05-31 06:36:41 +02:00
Guillaume Ayoub
167ebce065
Please isort again
2019-03-10 19:34:16 +01:00
Guillaume Ayoub
b7a9fe7dcc
Update copyright
2019-03-04 11:04:06 +01:00
Guillaume Ayoub
0cc5478252
Fix imports for isort
2019-03-01 11:38:03 +01:00
Guillaume Ayoub
56904baa79
Use the same copyright line everywhere
2018-09-20 18:46:27 +02:00
Guillaume Ayoub
ff72a7972e
Fix comment
2018-09-17 18:48:35 +02:00
Guillaume Ayoub
0482a09349
Add description of weasyprint.float
2018-08-29 14:43:17 +02:00
Guillaume Ayoub
7552b1b0e7
Avoid function call in avoid_collisions
2018-06-28 16:41:47 +02:00
Chancy Kennedy
31f0d854f4
assign locals to avoid attr lookups
2018-06-28 16:21:17 +02:00
Guillaume Ayoub
5341031162
Merge branch 'master' into flexbox
2018-02-19 14:32:19 +01:00
Guillaume Ayoub
16e8186568
Drop Python 2 support
2018-01-14 01:48:17 +01:00
Guillaume Ayoub
724565f27a
Don't allow attribute access to StyleDict objects
2018-01-13 17:05:23 +01:00
Guillaume Ayoub
bfe5f0b454
Don't crash on floating flex container boxes
2018-01-09 14:05:37 +01:00
Guillaume Ayoub
774e3f4be6
Fix box type detection for floats
2018-01-07 00:53:18 +01:00
Guillaume Ayoub
c8b6794f14
Change an URL in comments
2017-03-26 21:43:23 +02:00
Guillaume Ayoub
4f4b4ed598
Use isort in tests
2017-03-25 00:33:36 +01:00
Guillaume Ayoub
9abc034773
Change StyleDict into a real dict
...
This commit has a really good impact on speed (+15~30%) but a really bad
impact on memory usage (+30~40%).
2016-11-01 02:32:06 +01:00
Guillaume Ayoub
52d5c9a225
Fix Acid2 test
2016-06-25 01:35:23 +02:00
Guillaume Ayoub
50ebc20b97
Don't crash with floats with percents in positions
...
Fix #263
2016-05-16 14:56:34 +02:00
Guillaume Ayoub
92640de074
Don't crash when displaying floating ratio-only SVGs
2016-04-25 16:55:25 +09:00
Guillaume Ayoub
da96902bda
Fix many PEP8 errors and warnings
...
- Put line breaks after operators (that's OK)
- Don't assign lambdas, use functions (well, that's really explicit in
PEP8, it's really verbose but why not)
- Put imports at the beginning of the file (only special cases for us)
2016-01-15 12:48:25 +01:00
Alex Eftimie
93f497bf11
Replace utf8 with utf-8 for gettext compatibility
2015-11-25 09:38:01 +02:00
Simon Sapin
c34221d215
2014.
2014-01-10 14:27:02 +00:00
Guillaume Ayoub
d7e51a917a
Fix mix-width and max-width for floats ( fix #26 )
2013-12-27 15:39:05 +01:00
Guillaume Ayoub
3a620db567
Fix trailing whitespaces in preferred widths
2013-04-26 15:42:15 +02:00
Guillaume Ayoub
0901636a7e
Fix avoid_collisions again
2013-04-09 18:29:52 +02:00
Guillaume Ayoub
b25cb994a8
Fix complicated cases and a typo in avoid_collisions
2013-04-08 21:45:56 +02:00
Guillaume Ayoub
a5b58dbcda
Remove trailing space's width in avoid_collisions
2013-04-07 23:47:03 +02:00
Simon Sapin
171438f48e
2013
2013-04-03 16:23:48 +02:00
Guillaume Ayoub
6e114af5af
Fix horizontal negative margins for floats
2013-02-25 14:57:50 +01:00
Simon Sapin
d401e7241b
Kill Document in layout/*.py
2012-07-12 17:13:21 +02:00
Guillaume Ayoub
5e270133c8
Use the border height instead of the margin height to find floats with no height
...
Fixes Acid2
2012-06-28 01:42:28 +02:00
Guillaume Ayoub
762a8db2be
Don't detect collisions with 0-height boxes only for float boxes
2012-06-25 23:47:07 +02:00
Guillaume Ayoub
4c824f7374
Don't create new lines for floats with height = 0
2012-06-25 21:10:00 +02:00
Guillaume Ayoub
6bccfe7514
Fix a lot of things about floats
2012-06-25 19:48:22 +02:00
Guillaume Ayoub
8c4cf4118d
Remove print
2012-06-25 12:51:13 +02:00
Guillaume Ayoub
683afe9f3a
Fix tests
2012-06-25 12:47:15 +02:00
Guillaume Ayoub
f441f8c810
Increase position_y after clear blocks
2012-06-19 00:00:28 +02:00
Guillaume Ayoub
ef76204e99
Fix clearance and margin collapsing
2012-06-18 19:31:24 +02:00
Simon Sapin
f7d765e0c1
Bug fixes and tests on floats…
2012-06-15 17:59:15 +02:00
Simon Sapin
937710bf9c
Account for line height when avoiding collisions with floats.
2012-06-15 15:14:43 +02:00
Guillaume Ayoub
043d71dc29
Pass the fixed_boxes argument instead of using current_page
2012-06-06 12:04:09 +02:00
Guillaume Ayoub
39e503858d
Fix margin collapsing with clearance
2012-06-05 17:14:33 +02:00
Guillaume Ayoub
505ee8de26
Handle the mix/max-widths/heights for absolute and float
2012-06-04 19:22:18 +02:00
Simon Sapin
b1361612c6
Fix floating tables.
2012-06-02 08:46:11 +02:00