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
26a15824ae
Merge pull request #791 from Tontyna/pytest
Windows requires path2url in test_assert_bookmarks
2019-02-06 11:49:54 +01:00
Tontyna
57a0a1df48 Windows requires path2url in test_assert_bookmarks 2019-02-06 11:25:00 +01:00
Guillaume Ayoub
0d22a3ca6c
Merge pull request #789 from kitterma/master
Add LICENSE to sdist
2019-02-05 20:02:25 +01:00
Scott Kitterman
91f4c43390
Mention setuptools needed for license_file 2019-02-05 13:37:42 -05:00
Scott Kitterman
95217c6c48
Add license_file to metadata
Now LICENSE will be included in dists.  Requires setuptools-40.8.0 to work correctly.  With older versions it will silently not be included.
2019-02-05 13:33:57 -05:00
Guillaume Ayoub
92a0d5ffec Follow the famous nonexistent guide of style 2019-02-05 13:50:45 +01:00
Guillaume Ayoub
1a2f541bde
Merge pull request #788 from Tontyna/cross-ref
Pending cross references
2019-02-05 13:49:20 +01:00
Tontyna
b041a0600f Resolve pending backward targeted references 2019-02-05 13:24:16 +01:00
Tontyna
cfc16c66af Fix remnant TargetCollecor.items 2019-02-05 13:09:47 +01:00
Florijan Hamzic
88b6ecd16f
note on alpine installation and ctypes.util 2019-02-01 19:15:34 +01:00
Guillaume Ayoub
0682f1ba41 Lint 2019-02-01 01:34:06 +01:00
Guillaume Ayoub
498c275942 Fix tests because of a bug in Cairo
Cairo doesn't add links on empty pages, so we need to draw something on each
page in tests. This bug shouldn't happen with real life documents.

This issue appeared while fixing #780. Before that, empty pages were not empty
as they had at least an empty SVG drawn on the background.

See https://gitlab.freedesktop.org/cairo/cairo/issues/357
2019-01-30 22:48:21 +01:00
Guillaume Ayoub
17cd8e9fe8 Use empty tuple as computed value of 'marks: none'
Using 'none' was causing the 'if bleed and marks' condition in
draw.draw_background to be always true, and thus always draw at least an empty
SVG file on the page background.

Fix #780.
2019-01-30 22:39:37 +01:00
Guillaume Ayoub
b81a669c74 Escape links and targets with quotes
Fix #774.
2019-01-23 16:05:01 +01:00
Guillaume Ayoub
19ea503078 Merge branch 'master' of github.com:Kozea/WeasyPrint 2019-01-23 00:13:42 +01:00
Guillaume Ayoub
48d4266b6d Fix API documentation of HTML and CSS classes 2019-01-23 00:12:01 +01:00
Guillaume Ayoub
4ce86e2312
Merge pull request #773 from NeroBurner/patch-1
better phrasing in hacking
2019-01-22 11:11:14 +01:00
NeroBurner
4eb9eb5a7d
better phrasing in hacking 2019-01-22 08:22:41 +01:00
Guillaume Ayoub
f67b7a6083 Update line width when splitting lines with glued inline children
Fix #637.
2019-01-22 00:28:37 +01:00
Guillaume Ayoub
89041e8030 Remove assert that is wrong when #770 appears
Related to #770.
2019-01-21 15:42:34 +01:00
Guillaume Ayoub
0083fce54c Set default values when guessing columns sizes
Fix #770.
2019-01-21 11:48:18 +01:00
Guillaume Ayoub
afc773a440 Merge branch 'master' of github.com:Kozea/WeasyPrint 2019-01-17 00:06:50 +01:00
Guillaume Ayoub
13971f64af Add a paragraph in documentation about fontconfig error
Fix #402.
2019-01-17 00:05:37 +01:00
Guillaume Ayoub
58562fcdbd
Merge pull request #764 from Ballrock/master
gdk-pixbuf Error on Alpine 3.8
2019-01-07 19:17:00 +01:00
Antoine Précigout
e5dec9f46b
Change Alpine install command
Use gdk-pixbuf-dev instead of gdk-pixbuf
2019-01-07 18:56:59 +01:00
Guillaume Ayoub
72e574ecb8
Merge pull request #763 from kevin-brown/travis-matrix
Update Travis CI matrix
2019-01-06 10:33:43 +01:00
Kevin Brown
d6d3cfacc2 Switch to running Python 3.7 on Xenial
Python 3.7 is not supprted within Travis CI when running on Trusty, which is the current default for Linux.
2019-01-05 17:39:19 -05:00
Kevin Brown
797ea79b05 Test on Python 3.7
Let's see what "os" gives us by default. We may need to force it to use Xenial if it still defaults to Trust, which it probably does.
2019-01-05 17:36:34 -05:00
Guillaume Ayoub
8f15640d73 Add a note about required setuptools version to build the package
Related to #762.
2019-01-05 18:59:37 +01:00
Guillaume Ayoub
74f56f7102 Add a --debug option and set debug level for prefixed CSS properties 2019-01-04 01:22:49 +01:00
Guillaume Ayoub
3513e95b41 Use a separate logger for generation progress 2019-01-03 23:02:44 +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
723fb4e20e Couple of fixes with automatic and manual hyphenation
Fix #109, fix #748.
2019-01-02 17:45:56 +01:00
Guillaume Ayoub
316075cd52 Remove useless u'' 2019-01-02 17:45:45 +01:00
Guillaume Ayoub
7fa8edb7ad Fix description in packaging 2018-12-29 18:10:16 +01:00
Guillaume Ayoub
1b6be64ae6 Version 44 2018-12-29 17:23:06 +01:00
Guillaume Ayoub
3ac9c67a79 Add comments about rounding floats to avoid locale problems 2018-12-29 17:11:30 +01:00
Guillaume Ayoub
c0d8af6738 Avoid rounding errors in tests 2018-12-29 16:58:11 +01:00
Guillaume Ayoub
cb87108ecf Use integers instead of floats for links and bookmarks
Fix #742.
2018-12-29 14:19:59 +01:00
Guillaume Ayoub
d86055ce78 Merge branch 'master' of github.com:Kozea/WeasyPrint 2018-12-27 23:13:26 +01:00
Guillaume Ayoub
215529ffb9 Small typos in documentation 2018-12-27 23:13:10 +01:00
Guillaume Ayoub
824b5c9b4a Small division cleanup 2018-12-27 16:42:27 +01:00
Guillaume Ayoub
398ae3ace8 Remove sphinx directives and fix ReST typo in NEWS.rst 2018-12-14 18:28:01 +01:00
Guillaume Ayoub
be61ea3d33
Merge pull request #747 from Naddiseo/patch-1
Close version file after reading using context manager
2018-12-05 10:26:21 +01:00
Richard Eames
d27964b962
Close version file after reading using context manager
fix #746
2018-12-04 15:16:28 -07:00
Guillaume Ayoub
f8a6bb545b Fix justification, word spacing and letter spacing 2018-12-03 10:28:57 +01:00
Guillaume Ayoub
ddf10d2d71 Avoid deprecated function 2018-11-22 17:00:53 +01:00
Guillaume Ayoub
c34b1285ba Localize floats used by Cairo tags
According to the documentation (and to the code), Cairo seems to rely on
locale-dependent strings for tag attributes. It's for sure a bad idea, but at
least try to follow this rule and see if it fixes our problems.

Related to #742.
2018-11-22 14:07:40 +01:00
Guillaume Ayoub
2e600dc666 Deactivate Pango layout again as soon as possible 2018-11-21 22:29:04 +01:00
Guillaume Ayoub
4e6d449c5c Don't store Pango layout between page layout and drawing steps
Creating Pango layouts during page layout and recreating them when drawing
pages is a little bit slower but frees A LOT of memory.
2018-11-21 22:16:52 +01:00