Simon Sapin
dcacf9eed0
Switch the licence to BSD and rewrite module docstrings/headers
2012-03-21 23:26:58 +01:00
Simon Sapin
d7843b2231
Tag v0.7
2012-03-21 19:01:28 +01:00
Simon Sapin
26de362b99
Add proper attribution in AUTHORS
2012-03-21 18:40:38 +01:00
Simon Sapin
9875f76995
Hello 2012
2012-03-21 18:40:38 +01:00
Simon Sapin
7172323b8f
Add page-break-inside: avoid on table row groups
2012-03-21 18:36:03 +01:00
Simon Sapin
fc4d091f82
Add page-break-inside: avoid for tables
2012-03-21 18:09:03 +01:00
Simon Sapin
f2db08b310
Fix and test page breaks inside tables
...
rowspan > 1 is not handled correctly, but having *some* page breaks
is more valuable
2012-03-21 18:01:24 +01:00
Simon Sapin
e23c38bfd2
Merge branch 'master' into table-breaks
...
Conflicts:
weasyprint/css/validation.py
2012-03-21 17:06:47 +01:00
Simon Sapin
c521322ee7
Fix base64 URLs without padding
2012-03-21 16:07:49 +01:00
Simon Sapin
f46e01fddd
Simplify error handling in images.
...
Catch any non-sytem exception and consider that as an invalid image.
This may hide bugs, maintaining a growing list of invalid-image
exceptions was no fun either. The exception’s repr() is logged as usual.
2012-03-21 14:34:27 +01:00
Simon Sapin
5dda72d932
Add a test for the redundant shorthand fix.
2012-03-21 14:03:58 +01:00
Simon Sapin
232491662f
Ignore declarations on redundant values in shorthands.
...
(We previously just crashed with an AssertError.)
2012-03-21 13:57:33 +01:00
Simon Sapin
f814dc0243
Add page-break-inside: avoid
2012-03-21 11:36:24 +01:00
Priit Laes
f4a143a642
table-break: Fix infinite loop in case table row > page height
2012-03-17 13:43:19 +02:00
Priit Laes
3e2eb91341
table-break: WIP page-breaks inside tables
2012-03-16 21:09:24 +02:00
Priit Laes
b29ada1515
Fix typo in CSS validator
2012-03-16 17:03:03 +02:00
Simon Sapin
248e843a40
Port fireweasy to the new API
2012-03-15 20:00:23 +01:00
Simon Sapin
e07030fb61
Port the test web app to the new API
2012-03-15 19:53:31 +01:00
Simon Sapin
1d6c94828e
Add support for orphans and widows.
2012-03-14 19:33:24 +01:00
Simon Sapin
3632842b16
Better forced page breaks
...
If eg. page-break-before is 'always' on a first child, the break is
between the clostest ancestor that has a previous sibling and
that sibling.
See the changed test for an example.
2012-03-14 16:26:20 +01:00
Simon Sapin
869aac58c7
Ignore display: table-* values for inline elements
...
They end up as inline-level replaced boxes.
2012-03-14 13:34:08 +01:00
Simon Sapin
ae3c73db68
Use a bit more the cairo API.
2012-03-07 14:02:07 +01:00
Simon Sapin
45f7751600
Next is 0.7
2012-02-29 20:47:10 +01:00
Simon Sapin
8466ffe065
Tag v0.6
2012-02-29 20:41:48 +01:00
Simon Sapin
5c888817cf
Add missing test images.
2012-02-29 20:20:32 +01:00
Simon Sapin
90d8bd459f
Normalize case for --format Pdf
2012-02-29 20:17:44 +01:00
Simon Sapin
476732b81c
Support images in <embed> or <object>
2012-02-29 17:38:30 +01:00
Simon Sapin
e6cee2f2ab
Put block-level images on the next page when they would overflow.
2012-02-29 12:23:25 +01:00
Simon Sapin
3a4cf78c94
More tests for margin collapsing.
2012-02-28 16:33:54 +01:00
Simon Sapin
953493733f
Margin collapsing: not on the root element.
2012-02-28 14:54:20 +01:00
Simon Sapin
b8fa396d53
Margin collapsing: through "empty" elements.
2012-02-28 14:54:20 +01:00
Simon Sapin
28a53ef307
More collapsing margins again.
2012-02-28 14:54:20 +01:00
Guillaume Ayoub
016befd1af
Handle the combined selectors with pseudo-elements
2012-02-27 17:55:27 +01:00
Simon Sapin
7167c3e637
Be more defensive.
2012-02-27 16:48:27 +01:00
Simon Sapin
82e52815fa
Allow a file object as a positional argument in the API.
2012-02-27 15:59:26 +01:00
Simon Sapin
4fce42bd47
Do not monkeypatch sys.stdout in test_api.py: fix print debugging
2012-02-27 14:51:10 +01:00
Simon Sapin
5c4f627d10
TableBox.translate should translate column boxes too
2012-02-23 19:31:15 +01:00
Simon Sapin
e66e1025b0
More cases for margin collapsing
2012-02-23 19:31:15 +01:00
Simon Sapin
ceb8d749f8
Fix stdio monkey-patching on Python 3.
2012-02-23 19:31:15 +01:00
Simon Sapin
650b23ada8
Basic margin collapsing
...
Only between two siblings for now.
2012-02-23 19:31:15 +01:00
Simon Sapin
555ccbbd4f
Port the W3 test runners to the new API.
2012-02-23 19:31:15 +01:00
Simon Sapin
7ad1083e88
Rename weasyprint.logging to avoid conflicts the stdlib module.
2012-02-23 19:31:15 +01:00
Simon Sapin
f0e79cf99a
Cleanups
2012-02-23 19:31:15 +01:00
Simon Sapin
f6133af390
Correctly reset the list-item counter on new lists.
2012-02-23 19:31:15 +01:00
Guillaume Ayoub
a479fb67a0
Typo fix
2012-02-23 13:26:45 +01:00
Guillaume Ayoub
c5836405e9
Merge branch 'master' of github.com:Kozea/WeasyPrint
2012-02-23 13:19:21 +01:00
Guillaume Ayoub
b62e2712e0
Import the pystacia exception from the util module
2012-02-23 13:18:51 +01:00
Simon Sapin
af4aeb9376
Use pystacia instead of pypng in tests.
2012-02-22 14:13:14 +01:00
Simon Sapin
1c2b9da6bf
Forget the pattern for JPEG, use a solid blue image
...
Not only is JPEG lossy, but the results of decoding the same file depends
on the version of libjpeg. #0000ff blue still comes out as #0000fe
with quality=100, let’s hope that much will stay consistent...
2012-02-22 12:11:44 +01:00
Simon Sapin
f5f9fc729c
Switch to pystacia instead of PIL for raster images
2012-02-21 14:34:07 +01:00