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

3043 Commits

Author SHA1 Message Date
Guillaume Ayoub
d1d9641449 Add some tests for flex
Related to #601.
2018-09-20 18:46:10 +02:00
Guillaume Ayoub
419d14e415 Handle middle and center values of align presentational hint
Fix #694.
2018-09-20 15:29: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
f9659ab86a Lint 2018-09-18 10:54:16 +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
558165b974 Fix comment 2018-09-18 10:15:28 +02:00
Guillaume Ayoub
ed6e594f87 Merge branch 'master' of github.com:Kozea/WeasyPrint 2018-09-17 18:48:52 +02:00
Guillaume Ayoub
ff72a7972e Fix comment 2018-09-17 18:48:35 +02:00
Guillaume Ayoub
52fdf0acf8 Split columns layout 2018-09-17 18:48:24 +02:00
Guillaume Ayoub
aa238a273a
Merge pull request #682 from rightbrace/master
Added section to tutorial on adjusting `@page` attributes
2018-09-17 18:05:41 +02:00
Guillaume Ayoub
1dffcc7ab9
Merge pull request #676 from Tontyna/contrib_to_doc
Contrib to doc: Features
2018-09-17 17:59:45 +02:00
Guillaume Ayoub
a0af1c6384
Merge pull request #681 from Tontyna/fontconfig
Improve fontconfig check
2018-09-17 17:58:02 +02:00
Tontyna
066d3375ce Fix typos in docs/hacking 2018-09-03 17:19:10 +02:00
Tontyna
4cb2ab7d21 Merge branch 'master' into contrib_to_doc 2018-09-03 17:13:32 +02:00
Josef Duchesne
e8eeb09361 Built docs for tutorial changes 2018-09-02 20:57:32 -04:00
Josef Duchesne
5bdf263c62 Added section on setting up page geometry 2018-09-02 20:50:08 -04:00
Tontyna
8624113e13 Improve fontconfig check
Emit warnings about font-less fontconfig on any OS.

Stick to native rendering on Windows and macOS if fontconfig has
neither fonts nor a config file.
2018-09-01 11:20:38 +02:00
Guillaume Ayoub
01b09c6136 Fix crashes in flex layout 2018-08-30 18:57:04 +02:00
Guillaume Ayoub
2c5e146b57
Merge pull request #680 from Tontyna/fontconfig
Prevent RuntimeError
2018-08-30 11:47:00 +02:00
Tontyna
66e5a3fc22 Prevent RuntimeError 2018-08-29 21:05:44 +02:00
Guillaume Ayoub
a69fe888d3 Handle text-indent in preferred inline width 2018-08-29 16:36:10 +02:00
Guillaume Ayoub
f3d097cd9b Discard floats in children that don't fit at all on a line 2018-08-29 15:20:18 +02:00
Guillaume Ayoub
0482a09349 Add description of weasyprint.float 2018-08-29 14:43:17 +02:00
Guillaume Ayoub
8f6c738bbe Remove useless quotes 2018-08-29 14:29:21 +02:00
Guillaume Ayoub
ecba06aad1 Don't resolve linebox percentages for each line
Related to #679.
2018-08-29 14:26:23 +02:00
Guillaume Ayoub
85ac65514a Fix comment 2018-08-29 14:00:02 +02:00
Guillaume Ayoub
1b9b51a99e Correctly handle floats in inlines 2018-08-29 13:26:08 +02:00
Tontyna
fffc07784d Update features 2018-08-25 16:02:51 +02:00
Tontyna
1ca9ebe587 Fix typo 2018-08-25 15:57:43 +02:00
Guillaume Ayoub
b4371f7422 Set THIRDPARTY tag on modules unknown to isort
Isort doesn't understand that modules installed in .eggs (by setup.py) are
third-party modules.
2018-08-24 16:48:41 +02:00
Guillaume Ayoub
affbe00afd Fix position_x of rtl inlines
Related to #106.
2018-08-24 15:30:48 +02:00
Guillaume Ayoub
0297600c47 Always resolve auto width for flex boxes 2018-08-24 08:47:48 +02:00
Guillaume Ayoub
bd221002bf
Merge pull request #675 from Tontyna/contrib_to_doc
let's go
2018-08-23 22:28:21 +02:00
Tontyna
8c1250f459 let's go 2018-08-23 22:00:53 +02:00
Guillaume Ayoub
c1994acf2d Use console instead of bat for Windows code blocks 2018-08-23 21:57:52 +02:00
Guillaume Ayoub
52bb7477ac Typos and style fixes for Windows documentation 2018-08-23 19:14:38 +02:00
Guillaume Ayoub
e71ffe74d9
Merge pull request #674 from Tontyna/contrib_to_doc
Extensive installation instructions for Windows
2018-08-23 18:46:52 +02:00
Guillaume Ayoub
516285f355 Remove unused import 2018-08-23 18:26:51 +02:00
Guillaume Ayoub
0fe79762fa Use setup.cfg instead of setup.py for package metadata 2018-08-23 18:20:36 +02:00
Guillaume Ayoub
1969c7155e Add empty test file for flex 2018-08-22 14:37:55 +02:00
Guillaume Ayoub
6f4bb9aa2a Handle stretch + space-evenly for justify-content and align-content
Fix #673.
2018-08-22 14:10:54 +02:00
Guillaume Ayoub
64a6bf72c8 Use layout switch instead of block box to layout flex items 2018-08-22 13:42:03 +02:00
Guillaume Ayoub
674126f7d1 Keep the flex box size set by parent if possible 2018-08-22 13:41:40 +02:00
Guillaume Ayoub
2c7caf5fd2 Fix flex expander omitted values
And add tests to avoid stupid problems like this one.

Related to #673.
2018-08-22 13:40:19 +02:00
Guillaume Ayoub
7ab39313f5 Don't change flex box size when finding its children height 2018-08-22 13:17:52 +02:00
Guillaume Ayoub
63e11ec028 Adjust flex preferred width following box props and outer parameter 2018-08-22 11:26:46 +02:00
Tontyna
ce02413a75 Extensive installation instructions for Windows 2018-08-22 00:06:28 +02:00
Guillaume Ayoub
4667a6b159 Handle adjoining margins in flex layout
Top border is handled by collapsing_with_children set to False when the box is
a flex item. Bottom border is handled at the end of the flex item layout, by
adding the collapsed adjoining margins to the child's bottom border.

Fix #673.
2018-08-21 21:45:56 +02:00