Guillaume Ayoub
11a84b4f6f
Force unicode strings
2016-08-19 17:24:27 +02:00
Guillaume Ayoub
a43d5fc0bb
Cut long lines
2016-08-19 16:57:01 +02:00
Guillaume Ayoub
b1307dfee2
Merge branch 'manual-hyphenation' of https://github.com/jdus/WeasyPrint into jdus-manual-hyphenation
2016-08-19 16:42:52 +02:00
Guillaume Ayoub
1be9528cb8
Don't crash when a marker doesn't have a baseline
2016-08-17 19:46:15 +02:00
Guillaume Ayoub
c6fb4ce92a
Use the baseline to vertically align list markers
2016-08-17 19:30:38 +02:00
Guillaume Ayoub
7120d5fc15
Merge branch 'master' of https://github.com/morlandi/WeasyPrint into morlandi-master
2016-08-17 19:01:45 +02:00
Guillaume Ayoub
62c39b8029
Fix links with non-ASCII characters for Python 2
...
Fix #322 .
2016-08-17 18:30:53 +02:00
Guillaume Ayoub
e4593d4ad7
Merge branch 'master' of github.com:Kozea/WeasyPrint
2016-08-17 18:23:48 +02:00
Guillaume Ayoub
e1506ea026
Fix the use of the ratio for inline replaced boxes
2016-08-17 17:59:51 +02:00
Guillaume Ayoub
ddefd4bb52
Use FILESYSTEM_ENCODING when encoding file:// URLs
2016-08-17 00:52:11 +02:00
Guillaume Ayoub
e346982b03
Don't try to make urlopen's job
2016-08-16 23:36:54 +02:00
Guillaume Ayoub
59e4fb5146
Change the way filenames are managed
2016-08-16 22:15:18 +02:00
Guillaume Ayoub
55b63c9d60
1 generator = 1 debugging hour lost
2016-08-15 20:11:01 +02:00
Guillaume Ayoub
0c0d4bb96d
Small fixes for columns
2016-08-15 19:22:40 +02:00
Guillaume Ayoub
1f5ff70882
Fix the drawing order of borders and column rules
2016-08-15 19:22:05 +02:00
Guillaume Ayoub
1bdbae99dc
Remove a useless enumerate
2016-08-15 17:20:26 +02:00
Guillaume Ayoub
2a9bd30d13
Use a better column balancing algorithm
2016-08-15 17:15:57 +02:00
Guillaume Ayoub
4e4e0a48c0
Fix the column rule drawing
2016-08-15 17:15:39 +02:00
Guillaume Ayoub
fa8c302c69
Fix the "columns" validation
2016-08-15 17:15:24 +02:00
Guillaume Ayoub
e285acda8e
Draw column rules
2016-08-15 03:34:40 +02:00
Guillaume Ayoub
2de6429e53
Fix widths and gaps
2016-08-15 02:38:14 +02:00
Guillaume Ayoub
b37594e469
Flake8
2016-08-15 01:03:06 +02:00
Guillaume Ayoub
73564d6265
Set the height of the columns
2016-08-15 00:59:41 +02:00
Guillaume Ayoub
33aa5c6f6b
Initial support of multi-column layouts
...
Related to #60 .
This commit adds a really simple support of multi-column layouts.
2016-08-14 23:12:30 +02:00
Joel Steres
9620c71c13
Merge upstream master release 0.30 into letter-spacing-workaround patch branch
2016-08-04 11:23:30 -07:00
Guillaume Ayoub
b94546079d
Fix the embed and object links in docstrings
2016-08-04 19:20:37 +02:00
Guillaume Ayoub
e5083515f9
Remove useless print in tests
2016-07-28 17:47:50 +02:00
Guillaume Ayoub
ba66649c19
Version 0.30
2016-07-18 17:33:42 +02:00
Guillaume Ayoub
da2e3b3f18
Fix the way *_encoding properties are handled
...
See #334
2016-07-15 18:31:58 +02:00
Guillaume Ayoub
f1019b876a
Fix the html5lib-0.99999999 support
...
Fix #334 .
2016-07-15 17:50:31 +02:00
Guillaume Ayoub
902f5e20da
Re-add hack to avoid floating points errors
...
Fix #325 and shouldn't reopen #288 . Now that fac5ee9
fixes line-cutting
bug when drawing, we can use a much lower relative tolerance inspired
from PEP 485 (1e-9 instead of 1e-3).
Tests have been added with random values, as results highly depend on
the version of Pango used and on hinting properties depending on the
system used to launch the tests. They are probably longer than required,
but they try hard to prevent #288 and #325 from coming back.
2016-06-25 03:29:15 +02:00
Guillaume Ayoub
52d5c9a225
Fix Acid2 test
2016-06-25 01:35:23 +02:00
Joel Steres
87c3de7ee5
Merge upstream master release 0.29 into letter-spacing-workaround patch branch
2016-06-17 11:48:03 -07:00
Guillaume Ayoub
f90f20519e
Version 0.29
2016-06-17 14:09:59 +02:00
Guillaume Ayoub
50ebc20b97
Don't crash with floats with percents in positions
...
Fix #263
2016-05-16 14:56:34 +02:00
Guillaume Ayoub
35ea72b3f6
Version 0.28
2016-05-16 11:52:45 +02:00
Guillaume Ayoub
c308630243
Keep spaces where they are not allowed to collapse
2016-05-13 19:54:55 +02:00
Guillaume Ayoub
99d4372e6a
Don't justify lines where space is not collapsing
2016-05-13 19:53:11 +02:00
Guillaume Ayoub
42f0ffb908
Remove extra empty line
2016-05-08 16:53:00 +02:00
Guillaume Ayoub
f0912e4f2d
Don't use no-break spaces to avoid text wrapping
...
Fix #189
2016-05-08 16:44:57 +02:00
Guillaume Ayoub
29303da413
Don't crash when transform matrix isn't invertible
2016-05-08 15:53:58 +02:00
Guillaume Ayoub
92640de074
Don't crash when displaying floating ratio-only SVGs
2016-04-25 16:55:25 +09:00
Guillaume Ayoub
1b274ef570
Apply margins/borders for both table and wrapper
2016-04-25 09:10:22 +09:00
Guillaume Ayoub
49a8967ab0
Fix crashes due to corner cases on tables
...
Fix #305 .
2016-04-12 00:56:36 +02:00
Guillaume Ayoub
208cf6b89a
Version 0.27
2016-04-08 13:23:54 +02:00
Guillaume Ayoub
9556bf5376
Fix the layout of cells larger than tables
...
Fix #307 .
Many tests related to tables have been added in this commit. A lot of
these tests where failing *for different reasons* before this commit and
are real regression tests even if they look simple and stupid. They're
not duplicates even if they sometimes are almost the same.
2016-04-01 19:28:19 +02:00
Guillaume Ayoub
777ca829cc
Don't warn when drawing empty SVG files
2016-02-26 15:35:47 +01:00
Guillaume Ayoub
13fde51191
Don't crash with SVG images breaking CairoSVG
2016-02-26 15:29:05 +01:00
Guillaume Ayoub
b9af5666f5
Fix the intrinsic ratio calculation for SVG images
2016-02-26 15:28:43 +01:00
Guillaume Ayoub
d71ef5f4cb
Cut too long line
2016-02-26 14:36:22 +01:00
Guillaume Ayoub
f3b4fa2850
Enhance the support of SVG images
...
This commit adds two features:
- don't render SVG files twice anymore; and
- support SVG images with no intrinsic ratio.
2016-02-26 13:58:47 +01:00
Guillaume Ayoub
5def92e8b0
Test the 'rem' unit
2016-02-11 23:05:12 +01:00
Guillaume Ayoub
07e15db142
Add 'rem' support
...
This feature is kindly provided to you by Florian Demmer!
2016-02-11 23:02:53 +01:00
Guillaume Ayoub
41575e2f24
Version 0.26
2016-01-29 19:55:36 +01:00
Guillaume Ayoub
c32375982e
Fix table paddings and minor regressions
2016-01-29 18:50:51 +01:00
Guillaume Ayoub
c42bf6a803
Fix table row height when its height is not auto
2016-01-29 02:20:04 +01:00
Guillaume Ayoub
0eebd03ace
Remove padding from distributed excess width
2016-01-29 01:50:36 +01:00
Guillaume Ayoub
f8cf486af2
Rename assignatable to assignable
2016-01-29 01:07:39 +01:00
Guillaume Ayoub
c374640580
Remove useless import
2016-01-29 00:42:13 +01:00
Guillaume Ayoub
937c2cb67c
Respect width, min-width and max-width on tables
2016-01-29 00:39:51 +01:00
Guillaume Ayoub
a44e957a32
Don't calculate the total border spacing twice
...
Moreover, the result was false the second time!
2016-01-24 17:06:33 +01:00
Guillaume Ayoub
a5b8239773
Respect the empty-cells
property
2016-01-24 14:38:29 +01:00
Guillaume Ayoub
112c39be85
Don't crash on tables with rows but no columns
2016-01-24 14:35:01 +01:00
Guillaume Ayoub
26c1a40374
Fix test again
2016-01-22 11:57:18 +01:00
Guillaume Ayoub
d28f8470ab
Change test failing with some default fonts
2016-01-22 11:16:48 +01:00
Guillaume Ayoub
4e75ada4e0
Merge branch 'master' into tables
2016-01-21 14:34:26 +01:00
Guillaume Ayoub
d528a41aac
Fix forced width repartition for tables
...
And don't crash when rendering empty tables anymore.
2016-01-21 13:48:24 +01:00
Guillaume Ayoub
151162c028
Respect min- and max-height for inner adjustment
2016-01-21 13:47:16 +01:00
Guillaume Ayoub
9ccdd17019
Fix background size of columns
2016-01-18 19:27:50 +01:00
Guillaume Ayoub
81a035ce42
Compute value for inline-block margin-top/bottom
...
Fix #260
2016-01-17 15:03:19 +01:00
Guillaume Ayoub
3f7c2fa109
Fix background drawing for table rows and columns
...
The background of table rows, rows groups, columns and columns groups
must only be draw behind cells.
Fix #151 .
2016-01-16 17:33:52 +01:00
Guillaume Ayoub
3aa22479e4
Merge branch 'master' into tables
2016-01-15 13:18:03 +01:00
Guillaume Ayoub
71f74935e9
Don't call install_as_pycairo anymore
...
This was needed when CairoSVG was relying on pycairo instead of
cairocffi, that's not the case anymore since 2013.
It fixes the import problem reported by pep8.
2016-01-15 13:15:02 +01: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
Guillaume Ayoub
9b58dd7bde
Fix comment about table group spans
2016-01-14 18:15:36 +01:00
Guillaume Ayoub
1710f4256e
Remove extra space around operator
2016-01-12 11:00:21 +01:00
Guillaume Ayoub
1e39b6c5a6
Fix many bugs related to the table auto layout
...
Tests have been added, we can consider the code as
working, even if it may be cleaned and optimized.
2016-01-12 04:53:59 +01:00
Guillaume Ayoub
074b8757b9
Fix a variable name for flake8 on Python 2.x
2016-01-11 10:54:23 +01:00
Guillaume Ayoub
b241de9f54
Cut long lines
2016-01-11 10:44:51 +01:00
Guillaume Ayoub
72e214ae2e
Use David Baron's draft for auto table layout
2016-01-11 04:30:38 +01:00
Guillaume Ayoub
4898ad980b
Replace "*-content width" by "preferred * width"
2016-01-09 15:16:29 +01:00
Guillaume Ayoub
b617122af0
Clean some code about inline and text
...
- Fix some unicode/utf-8 TODOs
- Change hyphenation tests to use non-ASCII characters
- Use better variable names
- Use a simpler code for overflow-wrap: break-word
2016-01-01 19:20:45 +01:00
Guillaume Ayoub
fac5ee94e5
Don't split a line when drawing it
...
To draw a text line, the previous behaviour didn't rely only on the text
actually set on the layout, but also relied on the fact that the line
was cut again when drawn. This change removes the line cutting when
drawing, and thus only relies on the line splitting done during the
layout. This fixes a bug causing some words not being displayed at the
end of a text line drawn with hinting, and the actual drawing size with
hinting was bigger than the size calculated during the layout.
The text included in the drawn layout object was sometimes not cut at
the right position, it was longer but cut when actually drawn. This
commit also fixes this, by always setting the right text in the layout
object.
Fixing this bug enables us to remove a hack introduced to fight against
an "accumulation of floating point errors". I now think that "it wasn't
our war"™. I think that the real reasons of this hack were probably:
- a problem with trailing spaces in the shrink-to-fit functions fixed in
commit 3a620db
, and
- this line-cutting bug while drawing, fixed now.
I've tried hard to reproduce the shink-to-fit problem without this hack,
with no success. I don't see anymore how it can theorically happen with
the current code of the "preferred" module. The only bug fixed by this
hack that I've been able to reproduce is the hinting problem explained
in the first paragraph, and this bug is now really fixed.
Moreover, this hack used to cause another problem: as the maximum size
allowed to an inline block was actually bigger than the real size
available in the line, an inline block whose size was between the real
and the allowed sizes was put on a new line by the split_inline_box
function. This commit fixes #288 , the bug reported about this problem.
2016-01-01 16:48:15 +01:00
Guillaume Ayoub
d09ba47ac2
Fix attachments support for command line
...
How about quality control and unit tests? Well, tests have been added,
wow, such hope they are many helpful.
Oh, and it probably fixes #286 .
2015-12-31 13:22:30 +01:00
Guillaume Ayoub
c47ed0c8f6
Version 0.25
2015-12-17 12:01:34 +01:00
Guillaume Ayoub
e06d44d0d3
Fix a dirty bug in line splitting ( fix #285 )
2015-12-16 19:04:53 +01:00
Guillaume Ayoub
0719aa096b
Fix pdf_escape for python 2 again
2015-12-16 18:45:41 +01:00
Guillaume Ayoub
ff04ba8513
Fix pdf_escape for Python 2
2015-12-16 18:29:20 +01:00
Guillaume Ayoub
36338b4067
Escape parenthesis in URIs when generating PDFs
...
Fix #284
2015-12-16 17:16:10 +01:00
Guillaume Ayoub
09e14e5820
Fix typo
2015-12-16 13:50:04 +01:00
Alex Eftimie
93f497bf11
Replace utf8 with utf-8 for gettext compatibility
2015-11-25 09:38:01 +02:00
Guillaume Ayoub
b2688808a1
Fix flake8 again
2015-11-20 23:46:47 +01:00
Guillaume Ayoub
a310c61353
Fix a stupid flake8 error
2015-11-20 23:39:10 +01:00
Guillaume Ayoub
c582ac2c19
Merge branch 'master' of github.com:Kozea/WeasyPrint
2015-11-18 13:33:37 +01:00
Andrew Leech
a145bd12f6
Fix formatting to satisfy flake8
2015-09-28 14:08:41 +10:00
Andrew Leech
f44ae6d85f
Add support for use when frozen
...
Use appropriate path to find resource when frozen (using py2exe etc.)
2015-09-25 11:30:56 +10:00
Joel Steres
73b7c23d4a
Adjust line lengths to pass style acceptance tests
2015-09-02 18:52:32 -07:00
Joel Steres
97e87d54af
Fix letter-spacing handling at block boundaries
...
Pango letter-spacing attribute does not affect the last character in the
text range. This fix appends a zero-width-space to each TextBox so that
pango letter-spacing will add space following the final character.
Note that an earlier implementation that modified the TextBox width
resulted in increased spacing between boxes but in practice the renderer
often wrapped individual TextBoxes within a single LineBox.
2015-08-18 00:59:03 -07:00
Guillaume Ayoub
ccfe7b76e0
Add the 'q' unit
2015-08-14 17:03:59 +02:00
Guillaume Ayoub
f0da0374bf
Don't crash when attachments are not available ( fix #250 )
2015-08-14 13:51:56 +02:00
Simon Sapin
f5edde6c67
v0.24
2015-08-04 16:33:05 +02:00
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
Mario Orlandi
4569c15b3e
Fixed list item markers vertical alignement;
...
adjust vertical position taking into account line height of list item
2014-07-14 19:45:25 +02: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
c24a54d637
Fixed python3.2 error
2014-06-04 10:46:30 +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
Johannes Duschl
c82e66f912
Revert to using ' ' instead of u'\u0020' for a blank
2014-05-27 10:38:29 +02:00
Johannes Duschl
229ab453e5
Fixing too long lines.
2014-05-27 10:24:56 +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
Johannes Duschl
fef12c281b
Remove trailing white spaces
2014-05-23 11:53:05 +02:00
Johannes Duschl
c70233dceb
Obey code conventions
2014-05-23 11:37:54 +02:00
Johannes Duschl
c243ceb8c2
Add missing hyphen character at line break activated by a soft hyphen.
2014-05-23 10:17:01 +02: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
Simon Sapin
9b0488cff3
Fix PDF attachment tests to use a relative URL as intended.
2014-04-28 12:10:18 +01:00
Simon Sapin
dd9ff47c94
Fix code formatting
2014-04-27 18:16:14 +01:00
Simon Sapin
830598c30b
Merge branch 'pdf-attachments' from PR #177
2014-04-27 17:56:02 +01:00
Simon Sapin
43d1e73e65
Fix code formatting. (Clean flake8!)
2014-04-27 12:29:55 +01:00
Simon Sapin
09b2a4def0
Correctly close StreamingGzipFile, and log this kind of error
...
… rather than silence them. Logs make tests fail.
2014-04-27 11:00:02 +01:00
elpaso
3282655531
Added test case for multiple floated images shorter than the page.
2014-04-27 09:56:26 +02: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
977f6dacae
Merged upstram
2014-04-27 09:46:51 +02:00
Colin Leitner
da916a32a6
Added an Attachment
class for attachments provided through the API instead of the URL/description tuples
2014-04-25 23:35:43 +02:00
Colin Leitner
86e67e514a
Use element_has_link_type
for parsing the rel
attribute in the HTML metadata.
2014-04-23 17:42:37 +02:00
Colin Leitner
e244b8119b
Renamed is_internal
to link_type
, which is less confusing
2014-04-23 17:12:54 +02:00
Colin Leitner
8c06243c46
Use the new element_has_link_type
instead of parsing the rel
attribute manually.
2014-04-23 17:10:31 +02:00
Simon Sapin
a3ef9cce98
Fix parsing of <link rel>
2014-04-23 16:57:57 +02:00
Colin Leitner
4f3e48dd8e
Use temp_directory
in favor of tempfile
in the PDF embedded files testcase.
2014-04-23 16:53:32 +02:00
Colin Leitner
e66bb00d08
Moved temp_directory
to testing_utils
to allow reuse in other test files.
2014-04-23 16:52:06 +02:00
Colin Leitner
2be5945864
Replaced urlopen_contenttype
with urllib_get_content_type
, urllib_get_charset
and urllib_get_filename
.
2014-04-23 16:24:14 +02:00
Colin Leitner
b7a5c46626
Moved the UTF-8 decoding logic from compat.py
to pdf.py
, where it's actually necessary to special case the unquoted result
2014-04-22 21:48:11 +02:00
Colin Leitner
a8a951bc2f
Fixed the default_url_fetcher
for Python 2, which returns a message type with no get_filename
method
2014-04-22 21:22:10 +02:00
Colin Leitner
a084a5b517
Refactored attachments
attribute from the HTML
class to an argument for write_pdf
2014-04-22 20:40:46 +02:00
Colin Leitner
486834a099
Small whitespace fix
2014-04-22 19:32:01 +02:00
Colin Leitner
851167f19d
Removed usage of unnecessary binascii
module in favor of hexdigest
2014-04-22 19:29:37 +02:00
Simon Sapin
e65b26f38b
Fix parsing of <link rel>
2014-04-22 01:34:47 +01:00
Simon Sapin
a4dbe241dc
Add link to the Python bug for gzip streaming.
2014-04-21 23:58:37 +01:00
Simon Sapin
9404375d3e
Fix #86 : Support gzip and deflate encoding in HTTP responses
2014-04-21 23:52:58 +01:00
Colin Leitner
a9fd32c14c
Change filename logic for PDF attachments
...
This patch honors the filename key of a fetched resource, which can be set by
the `Content-Disposition` or `Content-Type` headers and uses
`mimetypes.guess_extension` for resources that lack any indication of a
filename.
2014-04-18 16:40:47 +02:00
Colin Leitner
05ec8df728
Added optional filename key to the URL fetcher result
2014-04-18 16:39:54 +02:00
Colin Leitner
846a5bedb4
Refactored the url_fetcher
argument for write_pdf
to an attribute of the Document
class
2014-04-18 15:11:45 +02:00
elpaso
52a6433377
Added test & patch for floating images page break
2014-04-17 14:02:04 +02:00
Colin Leitner
696df54d33
Avoid using the CWD during PDF tests with attachments relative to the document
2014-04-07 20:10:50 +02:00
Colin Leitner
44a6224d9f
Moved imports to top of file
2014-04-07 20:07:56 +02:00
Colin Leitner
83ef0e9c17
Use write_new_object
where applicable in _write_compressed_file_object
and check that the object numbers are still in sync
2014-04-07 20:03:30 +02:00
Colin Leitner
17f81862ff
Refactored write_compressed_file_object
to a top-level function
2014-04-07 19:55:23 +02:00
Colin Leitner
ff89ef0a73
Removed unnecessary PDF output simplification for empty unicode strings
2014-04-07 19:48:33 +02:00
Colin Leitner
a48d55a79c
Replaced unnecessary call to setattr
with direct assignment
2014-04-07 19:35:00 +02:00
Colin Leitner
5f16ac536e
Clarified attachment documentation
2014-04-07 19:32:48 +02:00
Colin Leitner
e519ba89f1
Fixed the meta testcase which had no idea of the new attachments entry
2014-04-07 19:28:14 +02:00
Guillaume Ayoub
a6a9f15826
Use ahem for test_overflow_wrap ( fix #180 )
2014-04-07 11:58:53 +02:00
Simon Sapin
cf9a688158
Don’t use bold text to test ex units, it affects the x-height of Ahem.
...
Fixes a test that was broken for me.
2014-04-07 01:48:27 +01:00
Colin Leitner
12734323f4
Fixed an expression which led to a KeyError for internal links.
2014-04-06 15:37:25 +02:00
Colin Leitner
7ac01f0519
Added support for PDF file annotations.
2014-04-04 18:46:00 +02:00
Colin Leitner
e458380190
Added support for PDF attachments (v2)
2014-04-04 12:32:21 +02:00
Christian Jurk
8b6f09c47f
Added more alternative names for dlopen gobject, pango and pangocairo on Mac
2014-03-18 12:00:09 +01:00
Guillaume Ayoub
dfee2badda
Merge branch 'master' of github.com:Kozea/WeasyPrint
2014-02-16 19:42:44 +01:00
Guillaume Ayoub
d07cb2261f
Don't crash when table with implicit width has column widths with percentages ( fix #169 )
2014-02-16 19:41:41 +01:00
Simon Sapin
372bcb5d1d
Make <fieldset> display: block
(See #168 )
2014-02-07 10:26:41 +00:00
Guillaume Ayoub
39a3ee603a
Merge branch 'master' of github.com:Kozea/WeasyPrint
2014-01-22 11:37:15 +01:00
Guillaume Ayoub
bb432ce351
Fix tests relying on font-specific metrics
2014-01-22 11:36:57 +01:00
Simon Sapin
b11e4e2d94
Changelog for v0.21
2014-01-11 12:13:14 +00:00
Simon Sapin
c34221d215
2014.
2014-01-10 14:27:02 +00:00
Johannes Duschl
21be3d968a
When determining the table_cell width, table.width needs also be checked whether it equals 'auto'.
2014-01-07 17:25:37 +00:00
Guillaume Ayoub
86eda6fa6d
Merge branch 'master' of github.com:Kozea/WeasyPrint
2013-12-31 16:46:30 +01:00
Guillaume Ayoub
2c52dc0e93
Merge branch 'css3/overflow_wrap' of git://github.com/fdeslandes/WeasyPrint into fdeslandes-css3/overflow_wrap
...
Conflicts:
weasyprint/text.py
2013-12-31 16:46:16 +01:00
Simon Sapin
637a4933c2
Add 'image-resolution' from css-images-3.
...
This is the only way to use high-resolution images in the 'content' property,
where individual images can not be selected to use the 'width' or 'height'
properties.
2013-12-31 15:31:35 +01:00
Guillaume Ayoub
bc0e612666
Make 'collapse' act like 'hidden' for non-table row or column elements
2013-12-30 17:53:20 +01:00
Guillaume Ayoub
e943741d02
Don't crash when relative boxes have absolute children ( fix #118 )
2013-12-30 14:43:41 +01:00
Guillaume Ayoub
3187fd8215
Don't forget left and right properties when solving absolute replaced elements position ( fix #30 )
2013-12-27 18:35:04 +01:00
Guillaume Ayoub
85c1fbaab3
Remove print() in tests
2013-12-27 18:01:32 +01:00
Guillaume Ayoub
b0c7dd5e4e
Update columns posititions when tables are translated ( fix #82 )
2013-12-27 17:06:31 +01:00
Guillaume Ayoub
3402a4fc3b
Don't cash on trailing spaces with font-size: 0 ( fix #100 )
2013-12-27 16:01:07 +01:00
Guillaume Ayoub
d7e51a917a
Fix mix-width and max-width for floats ( fix #26 )
2013-12-27 15:39:05 +01:00
Guillaume Ayoub
75a4241177
Don't crash whith documents with no lang attribute
2013-12-27 15:20:30 +01:00
Guillaume Ayoub
6315af3b8a
Use pyphen's fallback mechanism for unknown languages ( fix #40 )
2013-12-27 01:23:15 +01:00
Clément Plasse
1330164c2b
Merge branch 'master' of github.com:Kozea/WeasyPrint
2013-12-18 18:07:42 +01:00
Clément Plasse
449ef365d4
Fix background for tables
2013-12-18 18:07:38 +01:00
Guillaume Ayoub
dcd640ddce
Version 0.20.2
2013-12-18 17:26:57 +01:00
Guillaume Ayoub
3e49ce8abe
Don't crash when drawing borders on 0-size boxes ( fix #146 )
2013-12-18 15:30:59 +01:00
Guillaume Ayoub
f31f270552
Version 0.20.1 in __init__
2013-12-16 13:46:47 +01:00
Guillaume Ayoub
6b5b052822
Fix comment
2013-12-14 14:03:45 +01:00
Pierre-Alain Mignot
b64ebab515
tries to fix a bad splitting value from pango ?
2013-12-14 14:03:13 +01:00
Guillaume Ayoub
48637736d8
Use a better algorithm for border-style: ridge/groove/inset/outset ( fix #78 )
2013-12-14 13:40:44 +01:00
Guillaume Ayoub
674598cace
Fix source selector generator not ending with stylesheets using bad mimetype
2013-12-13 14:12:31 +01:00
Clément Plasse
469ca93b42
Fix table element order drawing following the spec
2013-12-13 12:42:14 +01:00
Guillaume Ayoub
4f904a955e
Fix sign error for rounded content box
2013-12-10 18:29:58 +01:00
Simon Sapin
c346f8b061
border-radius: Fix overlapping curves with the used radii
2013-12-10 14:49:34 +00:00
Guillaume Ayoub
effb7d339a
Use any() instead of +/or mix (see #80 )
2013-12-10 15:09:43 +01:00
Guillaume Ayoub
0e02a170af
Fix rounded content box (see #80 )
2013-12-10 15:08:16 +01:00
Guillaume Ayoub
b850d613fe
Add TODOs
2013-12-10 13:33:17 +01:00
Guillaume Ayoub
4070caf23a
Fix python 2.6 support
2013-12-10 13:32:51 +01:00
Guillaume Ayoub
e7687785fd
Fix background-clip for rounded corners (see #80 )
2013-12-10 13:17:18 +01:00
Guillaume Ayoub
d4493e5707
Merge branch 'master' into border3
2013-12-10 11:02:36 +01:00
Guillaume Ayoub
5b0befa91a
Fix overconstrained test
2013-12-10 11:00:18 +01:00
Guillaume Ayoub
882b6fce20
Be careful with the clip! Fix last bug for rounded borders.
2013-12-10 10:28:31 +01:00
Guillaume Ayoub
5eb9d41e1d
Fixed one bug again in borders, one bug left
2013-12-10 09:22:34 +01:00
Guillaume Ayoub
def2177d28
Remove duplicates again!
2013-12-09 21:42:33 +01:00
Guillaume Ayoub
f8c06c5179
Remove duplicate code again
2013-12-09 21:31:54 +01:00
Guillaume Ayoub
eb134d3ded
Deduplicate some code about borders
2013-12-09 19:51:59 +01:00
Guillaume Ayoub
e95aadcaa0
Small fix for borders
2013-12-09 19:25:36 +01:00
Guillaume Ayoub
09c9781de0
Use a way more simple way to draw dots in borders
2013-12-09 19:14:38 +01:00
Guillaume Ayoub
2e3203f79b
Fix sign
2013-12-09 12:52:26 +01:00
Guillaume Ayoub
40963f59c4
Draw real ellipse arcs instead of bezier curves
2013-12-07 15:53:52 +01:00
Clément Plasse
3307be5d2c
Fix offset
2013-12-06 19:00:20 +01:00
Clément Plasse
25a620e9fd
Better choice of the transition point
2013-12-06 16:04:53 +01:00