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

1154 Commits

Author SHA1 Message Date
Guillaume Ayoub
8c4cf4118d Remove print 2012-06-25 12:51:13 +02:00
Guillaume Ayoub
f15cb85d1d Merge branch 'master' into float 2012-06-25 12:48:11 +02:00
Guillaume Ayoub
683afe9f3a Fix tests 2012-06-25 12:47:15 +02:00
Simon Sapin
c2375d2f5c Do not require JavaScript in Navigator
And other niceties.
2012-06-25 10:57:38 +02:00
Guillaume Ayoub
3b740f32a6 Fix stupid bug 2012-06-25 10:21:42 +02:00
Guillaume Ayoub
b61f57b97c Avoid collision of replaced blocks and tables with floats 2012-06-25 10:17:39 +02:00
Guillaume Ayoub
b67bebfb92 Fix the position of line children next to float boxes 2012-06-24 00:03:45 +02:00
Guillaume Ayoub
aee82fd576 Add a todo and fix a little thing about text align for floats in inline 2012-06-23 13:05:08 +02:00
Guillaume Ayoub
a3cc6c62a8 Merge branch 'master' into float 2012-06-23 11:51:05 +02:00
Guillaume Ayoub
1c9a910c5f Merge branch 'master' of github.com:Kozea/WeasyPrint 2012-06-23 11:50:38 +02:00
Guillaume Ayoub
6c4f05fb54 Remove useless import 2012-06-23 11:50:10 +02:00
Guillaume Ayoub
e696d2b196 Translate children moved by floats (but no available_width shrink yet) 2012-06-23 11:47:38 +02:00
Simon Sapin
78461b81f1 Test the Navigator 2012-06-23 04:58:14 +02:00
Simon Sapin
18cc2958b2 Move the Navigator startup out of exception handling.
Otherwise, any other traceback would be prefixed with:

Traceback (most recent call last):
  File "weasyprint/navigator.py", line 160, in run
    from werkzeug.serving import run_simple
ImportError: No module named werkzeug.serving

During handling of the above exception, another exception occurred:
2012-06-23 04:22:10 +02:00
Guillaume Ayoub
989ae739ef Merge branch 'master' into float
Comment failing tests too :(

Conflicts:
	weasyprint/document.py
	weasyprint/draw.py
2012-06-23 02:00:09 +02:00
Simon Sapin
03a0ee1079 Add a PDF button to Navigator. 2012-06-22 19:01:21 +02:00
Simon Sapin
6483c69e02 Rewrite Navigator to run without Flask. 2012-06-22 18:48:52 +02:00
Simon Sapin
712a219803 Only disable anti-aliasing on PNG output.
And, for borders, if the width is more than 1 device unit.
2012-06-22 15:18:46 +02:00
Simon Sapin
4f801d61b4 Bug fix: list + tuple in find_earlier_break() 2012-06-22 14:34:36 +02:00
Guillaume Ayoub
ab5ecd8346 Fix some tests 2012-06-22 11:40:15 +02:00
Simon Sapin
541214ee71 Add a resolution parameter for PNG output in the public API.
The resolution is counted in PNG pixels per CSS inch.
Note however that CSS pixels are always 1/96 CSS inch.
With the default resolution of 96, CSS pixels match PNG pixels.
2012-06-22 08:49:48 +02:00
Guillaume Ayoub
cd1e5b3e05 Merge branch 'master' into float
Conflicts:
	weasyprint/layout/preferred.py
	weasyprint/text.py
2012-06-22 01:29:26 +02:00
Simon Sapin
9fde81d006 Fix a corner case in page-break-*: avoid 2012-06-21 19:05:54 +02:00
Guillaume Ayoub
a78c3d2749 Small fixes about floats 2012-06-21 18:12:17 +02:00
Simon Sapin
040eb765df Remove backends in favor of methods on Document
This much genericity was not that useful.
2012-06-21 17:22:01 +02:00
Simon Sapin
e06da5c87e Remove fireweasy, it’s been broken for a while 2012-06-21 17:22:01 +02:00
Simon Sapin
97f3eee889 Refactor text handling
* Kill the TextFragment class. Use a set of functions instead.
* Pass around an `enable_hinting` boolean rather than a dummy surface
2012-06-21 17:22:01 +02:00
Guillaume Ayoub
07c1596746 Merge branch 'master' into float 2012-06-21 16:12:08 +02:00
Guillaume Ayoub
2ba67841ba Use a base URL for w3 server (fixes images) 2012-06-21 16:09:39 +02:00
Guillaume Ayoub
e12880b113 Handle float in inline as almost normal boxes 2012-06-21 16:03:29 +02:00
Guillaume Ayoub
c163f8e8eb Merge remote-tracking branch 'origin/master' into float
Conflicts:
	weasyprint/document.py
	weasyprint/tests/w3_test_suite/web.py
2012-06-21 15:28:22 +02:00
Simon Sapin
a10e691d4d Nicer test runner for the W3C suite
* Show each page separately with a box-shadow
* Add line numbers to the source view
2012-06-21 12:04:43 +02:00
Simon Sapin
fc2fdb622c Add get_png_pages to the public API 2012-06-21 11:33:19 +02:00
Simon Sapin
5bf6172ac5 Disable anti-aliasing on underline and other text decrations. 2012-06-20 16:29:14 +02:00
Guillaume Ayoub
c1e495bee1 Add a todo about float blocks and collapse margins 2012-06-20 14:13:25 +02:00
Guillaume Ayoub
7cc8be2f90 Merge branch 'master' into float
Conflicts:
	weasyprint/layout/blocks.py
2012-06-20 13:47:28 +02:00
Guillaume Ayoub
cb068ec111 Add skip to resume_at indexes in find_earlier_page_break 2012-06-20 13:39:44 +02:00
Simon Sapin
7f13b225ff Initial changelog for 0.10 2012-06-20 12:59:49 +02:00
Simon Sapin
3dde680a23 Rename WeasyPrint Browser to Navigator 2012-06-20 12:59:48 +02:00
Simon Sapin
d4399ee269 Add support for page-break-{before,after}: avoid 2012-06-20 12:53:22 +02:00
Simon Sapin
7573742637 Merge branch 'master' into float
Conflicts:
	weasyprint/layout/absolute.py
	weasyprint/layout/blocks.py
	weasyprint/layout/inlines.py
2012-06-19 18:12:19 +02:00
Guillaume Ayoub
36a6b6b6f3 Pass the fixed_boxes argument instead of using current_page
Cherry-picked from 043d71dc29

Conflicts:
	weasyprint/layout/absolute.py
	weasyprint/layout/blocks.py
	weasyprint/layout/float.py
	weasyprint/layout/inlines.py
2012-06-19 18:00:50 +02:00
Guillaume Ayoub
f9e7c40ca2 Fix the drawing order of fixed boxes
Cherry-picked from 568e0aeb70

Conflicts:
	weasyprint/layout/blocks.py
	weasyprint/layout/inlines.py
2012-06-19 17:42:15 +02:00
Guillaume Ayoub
d71ad36580 Merge branch 'master' into float 2012-06-19 14:53:40 +02:00
Guillaume Ayoub
4fe56316f6 Finally fix margin collapsing for blocks with clearance 2012-06-19 14:52:30 +02:00
Guillaume Ayoub
f441f8c810 Increase position_y after clear blocks 2012-06-19 00:00:28 +02:00
Guillaume Ayoub
9cf9e53d0b Fix a little bug with clearance 2012-06-18 19:34:35 +02:00
Guillaume Ayoub
ef76204e99 Fix clearance and margin collapsing 2012-06-18 19:31:24 +02:00
Guillaume Ayoub
b3e3581f48 Remove useless import 2012-06-18 18:04:20 +02:00
Guillaume Ayoub
8a94ff2f9b Strip spaces at the beginning of text fragments to get real line widths 2012-06-18 10:44:54 +02:00