Guillaume Ayoub
50ebc20b97
Don't crash with floats with percents in positions
...
Fix #263
2016-05-16 14:56:34 +02:00
Guillaume Ayoub
92640de074
Don't crash when displaying floating ratio-only SVGs
2016-04-25 16:55:25 +09:00
Guillaume Ayoub
da96902bda
Fix many PEP8 errors and warnings
...
- Put line breaks after operators (that's OK)
- Don't assign lambdas, use functions (well, that's really explicit in
PEP8, it's really verbose but why not)
- Put imports at the beginning of the file (only special cases for us)
2016-01-15 12:48:25 +01:00
Alex Eftimie
93f497bf11
Replace utf8 with utf-8 for gettext compatibility
2015-11-25 09:38:01 +02:00
Johannes Duschl
5f11c23415
Eventually fixed code convention violations
2014-06-04 10:15:54 +02:00
Johannes Duschl
be2b94ce30
Use block_level_page_break to check for dedicated page breaks
2014-05-28 11:19:41 +02:00
Johannes Duschl
324255ba59
Removed blank line
2014-05-27 17:24:42 +02:00
Johannes Duschl
35f0050624
Respect page-break-after: avoid of previous elements when pushing floats to the next page
2014-05-27 17:22:31 +02:00
Simon Sapin
43d1e73e65
Fix code formatting. (Clean flake8!)
2014-04-27 12:29:55 +01:00
elpaso
0efde08b49
Added test case for floated images taller than the page. Added myself to AUTHORS.
2014-04-27 09:48:46 +02:00
elpaso
52a6433377
Added test & patch for floating images page break
2014-04-17 14:02:04 +02:00
Simon Sapin
c34221d215
2014.
2014-01-10 14:27:02 +00:00
Guillaume Ayoub
e943741d02
Don't crash when relative boxes have absolute children ( fix #118 )
2013-12-30 14:43:41 +01:00
Simon Sapin
1533b9c2d4
Fix margin collapsing with tables.
...
The position of page breaks between table rows did not consider margin
collapsing.
2013-04-26 15:02:27 +02:00
Simon Sapin
18aefe8a06
Remove unnecessary page breaks before tables.
2013-04-23 16:54:40 +02:00
Guillaume Ayoub
c84469daa1
Fix position of rtl blocks with left margins
2013-04-15 01:30:05 +02:00
Simon Sapin
1d1bf9cdc9
Flake8.
2013-04-11 12:08:53 +02:00
Guillaume Ayoub
bbe1b250c0
Don't set margins with over-constraint block-level boxes (useful for floats)
2013-04-09 18:30:25 +02:00
Simon Sapin
171438f48e
2013
2013-04-03 16:23:48 +02:00
Simon Sapin
fd276f1c9c
Fix #54 : min/max-width/height on block-level images.
2013-04-02 12:41:52 +02:00
Simon Sapin
a11ac81bdd
Fix #53 : crash when backtracking for break-before/after: avoid
2013-03-28 18:25:16 +01:00
Simon Sapin
60526fecd5
Allow page breaks between empty blocks.
2013-03-28 18:22:00 +01:00
Simon Sapin
216e13136e
Fix #44 : bad interaction of page-break-before/after: avoid
and floats.
2013-03-18 15:26:11 +01:00
Simon Sapin
d17ee64fa1
Do not repeat a block’s margin-top after a break.
2012-10-02 15:59:58 +02:00
Simon Sapin
d401e7241b
Kill Document in layout/*.py
2012-07-12 17:13:21 +02:00
Guillaume Ayoub
01c451b542
Don't collapse margins in table wrappers, remove a double translation
...
With this version, a lot of tests are OK. The main missing feature is the
unsupported margin collapsing through nested boxes. Once this is fixed, the
branch can be considered as stable.
2012-06-28 04:14:06 +02:00
Guillaume Ayoub
228f1e3d77
Fix most of the tests (but not Acid2)
2012-06-28 00:51:24 +02:00
Guillaume Ayoub
9afa96e987
Put floats in the next line when they don't fit on current line
2012-06-25 23:48:21 +02:00
Guillaume Ayoub
2f68f0f519
Again!
2012-06-25 21:37:15 +02:00
Guillaume Ayoub
b26d35cd96
Don't resolve percentages on tables
2012-06-25 21:35:45 +02:00
Guillaume Ayoub
6bccfe7514
Fix a lot of things about floats
2012-06-25 19:48:22 +02:00
Guillaume Ayoub
683afe9f3a
Fix tests
2012-06-25 12:47:15 +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
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
4f801d61b4
Bug fix: list + tuple in find_earlier_break()
2012-06-22 14:34:36 +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
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
d4399ee269
Add support for page-break-{before,after}: avoid
2012-06-20 12:53:22 +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
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
d62ba4936a
Don't collapse through boxes with clearance
2012-06-18 10:06:18 +02:00
Guillaume Ayoub
e4f9ff5331
Don't collapse through clear boxes
2012-06-15 18:49:40 +02:00