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

136 Commits

Author SHA1 Message Date
Guillaume Ayoub
12999bded8 Merge branch 'master' into pydyf 2020-10-23 12:36:03 +02:00
Mike Voets
d08c5b4fd6 Fix lint issues 2020-07-17 09:29:03 +12:00
Guillaume Ayoub
9372b94e8d Clean formatted strings 2020-05-30 15:55:44 +02:00
Guillaume Ayoub
aeb00c576b Only apply text-indent to lineboxes
Fix #1000.
2020-03-16 23:55:39 +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
ba2b4542e8 Merge branch 'master' into perf 2019-07-24 10:54:20 +02:00
Guillaume Ayoub
8d10c011d9 Don't respect table cell width when content doesn't fit
Fix #906.
2019-07-24 10:47:55 +02:00
Guillaume Ayoub
4e80f4cccf Remove enumerate_skip
It used to be really slow, at least on large inline containers.
2019-07-09 17:58:20 +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
51dcbe36a5 Don't crash when removing trailing whitespaces on pre-line blocks
Fix #610.
2019-03-01 16:03:04 +01:00
Guillaume Ayoub
0cc5478252 Fix imports for isort 2019-03-01 11:38:03 +01:00
Guillaume Ayoub
e49e20422a Fix crash on auto table layout for some corner cases
Fix #704.
2019-01-03 13:57:46 +01:00
Guillaume Ayoub
3d2c75fa51 Don't recalculate max content widths when distributing extra space
Fix #691.
2018-10-29 16:58:54 +01:00
Guillaume Ayoub
56904baa79 Use the same copyright line everywhere 2018-09-20 18:46:27 +02:00
Guillaume Ayoub
6fdf578c6e Fix yet another auto table layout
True story: you can read and implement a quite complicated algorithm, use it
for years, and then get an issue related to this algorithm. You can fix the
code, carefully following the algorithm, but still get a bad rendering. Why?
Because the algorithm is wrong. Of course, as it's written by David Baron, it
can't be that wrong: there's actually a red ISSUE block telling that "The way
this describes distribution of widths from column-spanning cells is wrong" and
that I "should refer to the rules for distributing excess width to columns for
intrinsic width calculation".

I did. Guess what: it works.

Fix #685.
2018-09-19 16:23:19 +02:00
Guillaume Ayoub
6bb86d214d Follow what's in the spec about tables (and break some tests) 2018-09-18 15:32:42 +02:00
Guillaume Ayoub
49b899e05d Add tests for tables
Related to #685.
2018-09-18 10:43:45 +02:00
Guillaume Ayoub
1ad21601eb Don't include gap for colspan cells in collapsed tables
Related to #685.
2018-09-18 10:15:33 +02:00
Guillaume Ayoub
a69fe888d3 Handle text-indent in preferred inline width 2018-08-29 16:36:10 +02:00
Guillaume Ayoub
63e11ec028 Adjust flex preferred width following box props and outer parameter 2018-08-22 11:26:46 +02:00
Guillaume Ayoub
80e8a6eeae Take care of alread updated values for span N
The point is not in David Baron's unofficial draft, but it makes sense. Adding
comments may be a good idea.

I've hit other bugs, some are solved, some are not (when using both percentages
in widths and useless colspans, for example).

Fix #666.
2018-08-10 18:29:07 +02:00
Guillaume Ayoub
e73f1dfb33 Fix a contribution according to the table layout unofficial spec
Related to #666.
2018-08-10 18:03:39 +02:00
Guillaume Ayoub
9e7a38cb67 Cosmetics 2018-08-10 18:02:47 +02:00
Guillaume Ayoub
87f157ea64 Typos 2018-08-09 17:59:47 +02:00
Guillaume Ayoub
162f097613 Don't use global variable for table cache 2018-03-25 16:23:59 +02:00
Guillaume Ayoub
e65e863e8e Fix 'auto' values for min_width and max_width 2018-03-06 01:25:47 +01:00
Guillaume Ayoub
99f2c05f82 Handle mix-width and min-height: auto 2018-03-06 01:00:45 +01:00
Guillaume Ayoub
216fe2b6c6 Merge branch 'master' into flexbox 2018-03-05 01:49:11 +01:00
Guillaume Ayoub
63db508efb Ignore overflow_wrap: break-word when calculating min-content width
See https://drafts.csswg.org/css-text-3/#overflow-wrap-property

Fix #582.
2018-03-05 01:23:32 +01:00
Guillaume Ayoub
19365e824e Fix all crashes with W3C test suite 2018-02-24 04:41:11 +01:00
Guillaume Ayoub
1fc10281df Merge branch 'master' into flexbox 2018-02-22 18:29:26 +01:00
Guillaume Ayoub
0247edcbd0 Fix replaced_max_content_width
Related to #576.
2018-02-22 18:28:38 +01:00
Guillaume Ayoub
5341031162 Merge branch 'master' into flexbox 2018-02-19 14:32:19 +01:00
Guillaume Ayoub
eaa27ac07d Split replaced_min_content_width and replaced_max_content_width
Fix #576.
2018-02-16 00:54:34 +01:00
Guillaume Ayoub
6f435de00b Get only first line's width of inline children to get linebox width
Fix #569
2018-02-12 22:56:03 +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
3027417f88 Merge branch 'master' into flexbox 2017-12-27 01:07:27 +01:00
Guillaume Ayoub
d822700e87 Fix optimization 2017-12-23 23:48:13 +01:00
Guillaume Ayoub
60879829ac Don't try to split all inline children when splitting first line
Fix #553.
2017-12-23 01:11:16 +01:00
Guillaume Ayoub
69b64d2bd0 First working version of flex layout 2017-12-23 00:19:32 +01:00
Guillaume Ayoub
588203b9eb Remove useless line_width parameter and line_widths function 2017-10-21 16:56:25 +02:00
Guillaume Ayoub
1076b106ea Ignore intrinsic size for replaced boxes with percentage-based width
Fix #227.
2017-10-11 11:11:57 +02:00
Guillaume Ayoub
f7903925fd Use a separate variable for justification spacing 2017-08-01 10:07:36 +02:00
Guillaume Ayoub
381678eec4 Don't draw all the lines when calculating the first line width
Just as it's done in inline_min_content_width, the first_line attribute is now
used in inline_line_widths. It greatly improves performance for really long
texts.
2017-07-23 23:11:55 +02:00
Guillaume Ayoub
46da8b5107 Drastically improve speed when rendering preformatted text
Fix #483.
2017-07-07 14:26:38 +02:00
Guillaume Ayoub
4f4b4ed598 Use isort in tests 2017-03-25 00:33:36 +01:00
Guillaume Ayoub
cca09dbe1d Merge pull request #374 from Kozea/font-face
Support @font-face
2016-11-03 12:28:23 +01:00
Guillaume Ayoub
7121f07c7f Fix the preferred width for column groups
Fix #382.
2016-11-01 23:55:21 +01:00