1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-04 16:07:57 +03:00
Commit Graph

956 Commits

Author SHA1 Message Date
Thomas Grainger
8c0a97a37d Fix ressource typo 2015-07-01 00:01:43 +01:00
Guillaume Ayoub
492619662f Fix some wrong conflict resolutions for table borders with inset and outset styles 2015-05-31 10:09:34 +02:00
Guillaume Ayoub
2d7f68e8a1 Use the same simple code for bookmark-labels and string-sets 2015-05-01 21:14:10 +02:00
Guillaume Ayoub
f0889c2589 Fix attr() and allow counters in string-set and bookmark-label 2015-05-01 20:28:42 +02:00
Guillaume Ayoub
862c334036 Don't try to compute attr() as it's been already replaced in computed_values 2015-05-01 11:14:24 +02:00
Guillaume Ayoub
273506d0ad Allow attr() in bookmark-label and string-set 2015-05-01 11:06:54 +02:00
Guillaume Ayoub
3a17bfa86e Remove useless import 2015-05-01 00:13:31 +02:00
Guillaume Ayoub
17abfbd1c9 Fix some comments 2015-05-01 00:12:43 +02:00
Guillaume Ayoub
f78eb3763e Use the <content-list> defined in GCPM for string-set and bookmark-label
In this content-list, here are the possibilities:
- string: implemented
- counter/counters: not implemented, but easily possible
- content: implemented (but what's exactly the "string value of an element"?)
- attr: not implemented (I don't know how to do this)
2015-04-30 21:54:19 +02:00
Guillaume Ayoub
0daaec844f Test the string-set property syntax 2015-04-30 14:41:25 +02:00
Guillaume Ayoub
c68240c5f4 Fix some pyflakes warnings 2015-04-30 10:58:51 +02:00
Guillaume Ayoub
790af1481a Merge pull request #246 from E-M-P-I-R-E/master
Support for named strings in margin-boxes
2015-04-30 10:30:23 +02:00
Guillaume Ayoub
94ca04812e Cut long line 2015-04-29 09:32:33 +02:00
Guillaume Ayoub
a97014c9af Remove useless if-block when validating the line-height property 2015-04-29 08:35:24 +02:00
Guillaume Ayoub
01a5ce742f Don't allow unknown units during line-height validation (fix #225) 2015-04-28 23:56:41 +02:00
Guillaume Ayoub
b4c43608fc Remove a useless nesting level 2015-04-28 23:11:22 +02:00
Johannes Duschl
94067db7ca This should fix #202. 2015-04-28 19:19:44 +02:00
Guillaume Ayoub
187e6d16b3 Draw rounded corners on replaced boxes (fix #207) 2015-04-25 20:00:20 +02:00
Guillaume Ayoub
4816788837 Merge pull request #224 from liZe/text-hack
Rely on the font size for rounding bug workaround
2015-04-25 19:13:43 +02:00
Guillaume Ayoub
f0e0829677 Fix PEP8 2015-04-25 19:05:53 +02:00
Guillaume Ayoub
8f11d27e48 Make the linear-gradient test require cairo-1.14 and other small test fixes 2015-04-25 18:36:39 +02:00
Guillaume Ayoub
6e82d6563e Merge branch 'master' of github.com:Kozea/WeasyPrint 2015-04-25 17:51:17 +02:00
Guillaume Ayoub
4ed0c3c987 Test vertical-align property in tables (fix #31) 2015-04-25 17:48:08 +02:00
Guillaume Ayoub
f4f8c252a7 Honor vertical-align for fixed-height cells (related to #31) 2015-04-25 15:16:47 +02:00
Guillaume Ayoub
54fde80346 Fix some tests relying on installed fonts 2015-04-24 23:55:06 +02:00
Guillaume Ayoub
b5080d2cc2 Make a linear-gradient test work with Cairo 1.14.x 2015-04-24 23:31:39 +02:00
Guillaume Ayoub
40413b06e0 Fix hyphenation tests by using ahem 2015-04-24 23:27:55 +02:00
Mike Z. Salem
a8a0141902 More changes for named strings [3]
PEP8/flake8 compliance again (sorry)
2015-03-22 00:30:38 -04:00
Mike Z. Salem
c603e92b55 More changes for named string support
Pep8/flake8 conformance
2015-03-21 19:24:13 -04:00
Mike Z. Salem
d4ce068854 More changes for named string support
Reinstate support for psuedo elements as an arugument to `content()`
Have to check if a box is a `ParentBox` when using `decendants()` in `TEXT_CONTENT_EXTRACTORS` for psuedo elements because it was returning the value twice in a row (ex. "stringstring")
2015-03-21 18:54:14 -04:00
Mike Z. Salem
abb560a762 PEP8/flake8 compliance 2015-03-21 00:50:22 -04:00
Mike Z. Salem
6e48c2e878 Set string-set default to 'none', altered validation & resolution [do nothing in that case]
Added validation to the second argument to `string()`
More info./discussion here: https://github.com/Kozea/WeasyPrint/pull/246#issuecomment-83994925
2015-03-21 00:08:12 -04:00
Mike Z. Salem
7db9be4005 Remove support of string set using psuedo elements. Was unsure of the change to the function in build.TEXT_CONTENT_EXTRACTORS. That would be part of the text anyways.
Combined test functions to conform to coding style of other tests.
2015-03-19 23:03:57 -04:00
Mike Z. Salem
8ef012fca8 Bug fix for string-set validation not accepting no argument (default should be 'text')
Alter TEXT_CONTENT_EXTRACTORS so that string-set can use ::before/::after
 - Don't allow empty string to be assigned to string set (happends with psuedo elements)
Added some documentation to explain string function resolution
2015-03-18 22:46:51 -04:00
Mike Z. Salem
bc51dec015 Basic support for named strings. String-set limited to one value. 2015-03-08 23:02:51 -04:00
Guillaume Ayoub
9b38823b94 radiii -> radii 2015-01-29 12:23:43 +01:00
Guillaume Ayoub
bbb42f28c3 Rely on the font size for rounding bug workaround
Only relying on the line length is awful in real-life test cases when the
font size is big and the line short (ex. titles), causing the last word
of some lines to disappear.

This new workaround gives an 0.2em extra space for latest characters
(instead of line-height/10000).
2014-11-01 11:06:06 +01:00
Simon Sapin
465483336d Fix failing test_pdf.test_embedded_files test on PyPy.
WeasyPrint still doesn’t actually work on PyPy with non-trivial documents,
but at least Travis-CI is green again.
2014-09-16 21:07:07 +01:00
Simon Sapin
8b09651e5a Changelog for v0.23 2014-09-16 20:56:28 +01:00
Simon Sapin
2666e33a15 Avoid a crash with zero-sized background images. Fix #217. 2014-09-16 20:44:35 +01:00
Simon Sapin
1e4a6ea0d7 Merge pull request #201 from jdus/page-break-after-avoid
Page break after avoid
2014-06-19 14:26:59 +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
81796cae34 Remove trailing white spaces 2014-05-27 17:38:13 +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
8c44c06a8d Merge pull request #194 from mmariani/dlopen
cannot find pango, gobject, etc. libraries on some platforms
2014-05-23 14:55:25 +01:00
Simon Sapin
5c2b72ced5 Use the default image sizing algorithm for its preferred size. Fix #196
For image with an intrisic ration and auto specified width
but definite specified height, the intrisic/preferred width
(like the used size) should be based on the specified height
and intrinsic ratio.
2014-05-23 13:50:39 +01:00
Marco Mariani
0ae57ed81e more library aliases are needed when compiling from sources (i.e within SlapOS) 2014-05-22 10:28:01 +02:00
Simon Sapin
24d6c0cb27 Changelog for v0.22 2014-05-05 11:53:38 +01:00