1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-05 16:37:47 +03:00
Commit Graph

973 Commits

Author SHA1 Message Date
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
Clément Plasse
bdbacdd8e3 Fix double clip for borders 2013-12-06 13:06:40 +01:00
Clément Plasse
29da3b4c3c Merge branch 'master' of https://github.com/Kozea/WeasyPrint 2013-12-06 11:16:35 +01:00
Guillaume Ayoub
6524ab3ac2 Add left and right borders 2013-12-06 11:12:03 +01:00
Guillaume Ayoub
766171c11f Group code for top and bottom borders 2013-11-19 16:02:52 +01:00
Guillaume Ayoub
5d99fdd54d Add support for bottom borders 2013-11-19 14:37:49 +01:00
Guillaume Ayoub
05db0852b7 Fix again failing tests with Python 2 2013-10-17 14:55:16 +02:00
Guillaume Ayoub
091a934e66 Fix tests with some versions of Python 2 2013-10-17 14:43:33 +02:00
Guillaume Ayoub
82a188e86a Merge pull request #112 from Kozea/html5lib
Switch to html5lib to parse HTML. Fix #12.
2013-10-17 05:22:51 -07:00
Simon Sapin
4b69eaf5f8 Make --help ASCII only, fix #127 2013-10-14 15:07:05 +01:00
Frédérick Deslandes
1a2345f580 Refactored word-wrap keywords validation 2013-10-01 13:35:08 -04:00
Frédérick Deslandes
d17282a3aa Implemented word-wrap alias.
Also added my name to AUTHORS
2013-10-01 11:52:05 -04:00
Frédérick Deslandes
f409ceeb25 Implemented CSS3 overflow-wrap property
Implemented the property as described by the W3C draft.  There is still a
bug with shaping characters which does not keep their shapes when wrapped
on new lines.  Implemented as overflow-wrap CSS property, but maybe it
should be refactored to -weasy-overflow-wrap.  Browser implementation is
inconsistent, so there was no clear answer.
2013-10-01 09:51:10 -04:00
Guillaume Ayoub
21320ab538 Handle cases when height>width for border radius 2013-09-17 20:17:11 +02:00
Guillaume Ayoub
d56c799c73 Merge branch 'master' into border3 2013-09-17 13:08:31 +02:00
Guillaume Ayoub
6f5d6124a4 Double clip borders 2013-09-14 11:13:53 +02:00
Guillaume Ayoub
aef454122b Small fix 2013-09-14 10:24:40 +02:00
Guillaume Ayoub
a49f456c21 Small fixes about borders 2013-09-14 10:21:25 +02:00
Guillaume Ayoub
a0bf5981ad Fix stupid bug in border radius index for dot/dash step 2013-09-12 16:50:17 +02:00
Simon Sapin
75cdc9baef Add 'font-stretch' in the 'font' shorthand. 2013-09-09 21:14:30 +01:00
Florian Mounier
f7c363e546 logging.warn is still deprecated 2013-08-19 14:40:51 +02:00
Florian Mounier
e3d7bad55b Be careful logging.warn is deprecated 2013-08-19 14:38:09 +02:00
Guillaume Ayoub
3e3accd619 Merge branch 'master' into border3 2013-08-14 12:50:32 +02:00
Guillaume Ayoub
3d816023dd Remove stupid line in test, fixes pypy support 2013-08-12 13:32:18 +02:00
Clément Plasse
c2cb5b093b Fix row assigned height when it's not 'auto' 2013-08-07 09:38:54 +02:00
Guillaume Ayoub
324e3f7867 Don't crash when root element is not displayed (fix #113) 2013-08-04 14:52:47 +02:00
Guillaume Ayoub
fd5cbad513 Handle percentages for column groups 2013-08-03 16:35:19 +02:00
Guillaume Ayoub
5b4b67e67f Handle (some) percentages for table columns and cells 2013-08-02 18:58:56 +02:00
Guillaume Ayoub
0b0edc02e3 Use 'm' instead of 'l' charater in tests based on 'em' unit 2013-08-02 12:30:34 +02:00
Simon Sapin
3589303449 Bump version number, there is at least PDF metadata as a new feature. 2013-07-26 13:56:13 +01:00
Simon Sapin
4069a1cc36 Switch to html5lib to parse HTML. Fix #12. 2013-07-24 13:21:48 +01:00
Guillaume Ayoub
5fc60f9041 Fix borders (only works for top now) 2013-07-22 16:11:59 +02:00
Simon Sapin
eb08733938 Add PDF metadata parsed from HTML. Fix #77.
<title> → /Title
<meta name=author> → /Author
<meta name=description> → /Subject
<meta name=keywords> → /Keywords
<meta name=generator> → /Creator
<meta name=dcterms.created> → /CreationDate
<meta name=dcterms.modified> → /ModDate
"WeasyPrint vX.Y" → /Producer
2013-07-22 00:13:11 +01:00
Simon Sapin
52c06894b7 Docs: add an example combining documents into one PDF file. 2013-07-14 09:22:04 +01:00
Simon Sapin
783de80f30 Tentative fix for #97: w.HTML(positional_argument) crashes Python < 2.6.5 2013-07-11 18:43:11 +01:00
Pierre-Alain Mignot
76b87c82f4 Fix #101: Write PDF bookmarks/outline correctly.
The PDF spec says that the target of a bookmark/outline entry contains
the *object ID* of the target page. We previously wrote the *page number*,
which for some reason still worked in some PDF viewers.
2013-06-28 18:33:14 +01:00
Simon Sapin
3313c061ae Fix #84: Mak loading an author stylesheet not fatal. 2013-06-20 22:11:19 +01:00
Simon Sapin
d8014d28ad Image loading: only swallow exception related to fetching or decoding. 2013-06-20 22:06:47 +01:00
Simon Sapin
05e1cb22b2 URL fetching: enforce closing sockets/files with a context manager. 2013-06-20 15:16:47 +01:00
Simon Sapin
711d5aa19b Small refactoring. 2013-06-20 12:40:21 +01:00
Simon Sapin
9c9fc1ae2d Do not get MIME types base on URLs. 2013-06-20 12:40:11 +01:00
Simon Sapin
9d5cebb5ce URL fetching: use an intermediate function rather than a wrapper 2013-06-20 12:17:03 +01:00
Simon Sapin
ae6764143c Fix a possible use-after-free. 2013-06-19 10:04:37 +01:00
Simon Sapin
1be520f1b0 Merge branch 'master' of git://github.com/pikhovkin/WeasyPrint 2013-06-18 18:18:19 +01:00
Simon Sapin
12966087ee Changelog for v0.19.2 2013-06-18 16:40:18 +01:00
Simon Sapin
bed4a41c41 Avoid duplicating the check for cairo MIME data support. 2013-06-18 15:18:05 +01:00
Sergey Pikhovkin
8b86643e0e Copy table.column_positions
Copy list if the element is inserted on each page (eg. as https://gist.github.com/pikhovkin/5642563), else expanding table.column_positions
2013-06-18 17:47:39 +04:00
Simon Sapin
e8fac4b840 Fix #99: JPEG image not loading with cairo 1.8.x 2013-06-18 12:48:06 +01:00
Sergey Pikhovkin
697c52dc00 Copy list
Copy list if the element is inserted on each page (eg. as https://gist.github.com/pikhovkin/5642563), else expanding table.column_positions
2013-06-14 16:32:15 +04:00
Guillaume Ayoub
856890e0b1 Fix dotted and dashed borders 2013-06-13 17:52:39 +02:00
Guillaume Ayoub
6b8d32a501 Don't validate the lengths in border-radius twice 2013-06-13 16:55:40 +02:00
Guillaume Ayoub
8463ba0c46 Cast round() to an int 2013-06-12 21:50:29 +02:00
Guillaume Ayoub
c16953cf3f Fix dotted and dashed borders, fixes all tests
Rounded dotted and dashed borders are still broken
2013-06-10 23:47:10 +02:00
Guillaume Ayoub
34c6fe3de3 Handle ridge and groove 2013-06-07 19:46:35 +02:00
Guillaume Ayoub
7ce1648cf1 Handle inset and outset border styles 2013-06-07 19:29:37 +02:00
Guillaume Ayoub
eb22847dd2 Fix min and max calls 2013-06-07 19:21:02 +02:00
Guillaume Ayoub
a9b21387c1 Remove duplicate code 2013-06-07 19:03:59 +02:00
Guillaume Ayoub
aca98d7d38 Fix a couple of things again 2013-06-07 17:19:10 +02:00
Guillaume Ayoub
1bb50557bf Fix a couple of little things 2013-06-07 17:14:32 +02:00
Guillaume Ayoub
1e226cd88a Fix overlapping curves 2013-06-07 17:05:58 +02:00
Guillaume Ayoub
cb2460067b Fix outlines and collapsed borders in tables 2013-06-07 16:52:31 +02:00
Guillaume Ayoub
ca91649f02 Draw rounded border segments
This breaks outlines and collapsed borders
2013-06-07 13:13:27 +02:00
Guillaume Ayoub
3256eebad1 Use better names for variables and methods about rounded boxes 2013-06-06 16:21:56 +02:00
Guillaume Ayoub
f0b8b755bd Draw solid and double borders 2013-06-06 15:58:00 +02:00
Guillaume Ayoub
0345af4d3d First commit about border-radius, works for the background 2013-06-05 18:56:57 +02:00
Guillaume Ayoub
dccd562c6b Don't clip the border when overflow: hidden 2013-06-05 18:45:16 +02:00
Guillaume Ayoub
1930bb1ffe Cut long lines 2013-06-03 18:35:37 +02:00
Guillaume Ayoub
b766ffac22 Merge branch 'typographic-text-decorations' of git://github.com/ariofrio/WeasyPrint into ariofrio-typographic-text-decorations
Conflicts:
	weasyprint/draw.py
2013-06-03 18:26:08 +02:00
Guillaume Ayoub
0eed4a088f Actually draw multiple lines when multiple values are given to text-decoration 2013-05-24 19:07:53 +02:00
Guillaume Ayoub
3a9fa3cb66 Fix encoding error when files are restored from saved HTML in test_web 2013-05-24 19:06:40 +02:00
Guillaume Ayoub
af3d964f44 Merge pull request #90 from ariofrio/test-web-unicode
Allow non-ascii characters to be used in the test_web app
2013-05-24 09:45:53 -07:00
Guillaume Ayoub
0ac3ba6db3 Merge pull request #88 from ariofrio/fix-overline
Fix overline not being drawn above the text
2013-05-24 09:21:40 -07:00
Le-Stagiaire
72c9c02b64 Typo in bookmark label 2013-05-24 16:27:11 +02:00
Andres Riofrio
3666b4d9f4 Allow non-ascii characters to be used in the test_web app 2013-05-17 10:21:30 -07:00
Andres Riofrio
1aea07a33f Read typographic hints from Pango for text decorations 2013-05-17 09:52:05 -07:00
Andres Riofrio
d2c69d09f0 Fix overline not being drawn above the text 2013-05-17 09:48:38 -07:00
Guillaume Ayoub
f2e9fbb95e Make counter names case-sensitive 2013-05-10 12:13:21 +02:00
Le-Stagiaire
505be3c99c Fix background-size: cover/contain for image ratio ≠ 1 2013-05-02 19:46:36 +03:00
Simon Sapin
22b4a95406 Changelog for v0.19.1 2013-04-30 17:08:33 +02:00
Simon Sapin
b57a9e8e0e Use anti-aliasing for dotted borders. It looks better that way. 2013-04-30 11:50:32 +02:00
Simon Sapin
25bab1dc6c Fix #76: repeating <thead> and <tfoot> on every page with border-collapse. 2013-04-30 10:56:43 +02:00
Guillaume Ayoub
28822aff74 Fix a test relying on a bug of libxml2 2013-04-26 16:02:01 +02:00
Guillaume Ayoub
3a620db567 Fix trailing whitespaces in preferred widths 2013-04-26 15:42:15 +02: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
4796fd138d Fix painting of inset/outset borders. 2013-04-26 15:00:58 +02:00
Simon Sapin
a69c242daf Allow line breaks before/after atomic inline elements
… in preferred minumum width calculation.

Revert test workarounds made in the previous commit.
2013-04-26 15:00:21 +02:00
Simon Sapin
9c0d74efc6 Refactor min-content, avoid dubious line breaks.
Layout still can break at any tag, but not min-content.
2013-04-23 19:55:21 +02:00
Simon Sapin
da3ded0e7b Fix max-content with forced line breaks and whitespace at start of line. 2013-04-23 18:49:44 +02:00
Simon Sapin
18aefe8a06 Remove unnecessary page breaks before tables. 2013-04-23 16:54:40 +02:00
Simon Sapin
1cd961fafc Use stroke rather than fill for solid borders. Looks better on PDF. 2013-04-23 16:24:33 +02:00
Simon Sapin
302eae25b0 Have position: fixed elements repeated on every page. 2013-04-23 15:32:08 +02:00
Simon Sapin
1e3e96a8bd Fix unnecessary line break in floats. 2013-04-22 17:26:41 +02:00
Simon Sapin
c5a90f09ac Changelog and docs for v0.19 2013-04-18 11:59:44 +02:00
Simon Sapin
77f8894ced Add pixel tests for gradients. 2013-04-17 18:02:19 +02:00
Simon Sapin
bf86113961 Python 3.1 compat
3.1’s range() objects do not support slicing.
2013-04-17 13:10:36 +02:00
Simon Sapin
86a3319f68 Remove the now empty png.py file. 2013-04-16 16:22:14 +02:00
Simon Sapin
1681891f55 Add radial gradient layout tests. 2013-04-16 16:22:14 +02:00
Simon Sapin
b6f6d348bd Add linear gradient layout tests. 2013-04-16 16:22:14 +02:00
Guillaume Ayoub
d406ad6eee Simplify 'white-space: nowrap' handling, fix corner cases. 2013-04-16 14:27:14 +02:00
Guillaume Ayoub
cdf7e6dc8d Fix line-height calcalation of inline boxes. 2013-04-16 14:01:12 +02:00
Guillaume Ayoub
c84469daa1 Fix position of rtl blocks with left margins 2013-04-15 01:30:05 +02:00
Guillaume Ayoub
cae9f8cc00 Don't keep leading and trailing spaces in nowrap texts 2013-04-15 01:29:18 +02:00
Guillaume Ayoub
052f70aceb Fix a crash caused by missing margins on phantom lines containers 2013-04-15 00:22:07 +02:00
Guillaume Ayoub
77a69ec900 Merge branch 'master' of github.com:Kozea/WeasyPrint 2013-04-12 20:47:59 +02:00
Guillaume Ayoub
40bb737be9 Use real ex values for vertical-align: middle 2013-04-12 20:44:38 +02:00
Guillaume Ayoub
71da008408 Fix broken tests 2013-04-12 20:09:41 +02:00
Guillaume Ayoub
d903569550 Fix and clean phantom lines detection 2013-04-12 18:51:43 +02:00
Simon Sapin
0d9f867491 Fix the URL scheme regexp.
Not sure why I had [0-1] there.
2013-04-12 10:32:25 +03:00
Guillaume Ayoub
a2f8aada42 Fix 'white-space: nowrap' and add tests about this 2013-04-12 01:48:58 +02:00
Guillaume Ayoub
6082b3c8d6 Fix a test broken by 1d1bf9cd 2013-04-11 18:43:05 +02:00
Simon Sapin
50ddcf7015 Add parsing tests for gradients. 2013-04-11 16:06:28 +02:00
Simon Sapin
e92c6e8c69 Fix a bug introduced by "whitespace only" changes :) 2013-04-11 12:51:24 +02:00
Simon Sapin
ef56b60ece Remove the scripts for runnig the W3C test suite.
Moved to https://github.com/Kozea/WeasySuite
2013-04-11 12:13:17 +02:00
Simon Sapin
1d1bf9cdc9 Flake8. 2013-04-11 12:08:53 +02:00
Simon Sapin
dd8952adc6 Add radial gradients. 2013-04-11 10:39:47 +02:00
Simon Sapin
3ca71a6bed Gradients (still untested), handle pathological cases. 2013-04-11 10:39:47 +02:00
Simon Sapin
ff98eca1bd Drop support for CFFI < 0.6 2013-04-11 10:39:47 +02:00
Guillaume Ayoub
8e6df93709 Don't allow 'hidden' value for 'outline-style' property 2013-04-10 19:18:46 +02:00
Guillaume Ayoub
3ee0e4f279 Fix tests 2013-04-09 18:41:25 +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
Guillaume Ayoub
0901636a7e Fix avoid_collisions again 2013-04-09 18:29:52 +02:00
Guillaume Ayoub
2a6271a4da Use the skip stack when calculating the available width of the first line 2013-04-08 21:46:39 +02:00
Guillaume Ayoub
b25cb994a8 Fix complicated cases and a typo in avoid_collisions 2013-04-08 21:45:56 +02:00
Guillaume Ayoub
9d90ff627f Don't draw empty lines with no forced line breaks 2013-04-08 19:09:56 +02:00
Guillaume Ayoub
6aed6a6c0a Don't crash on empty tables with "border-collapse: collapse" 2013-04-08 17:43:29 +02:00
Guillaume Ayoub
a79a8f83a5 Don't crash when control characters are in CSS selectors 2013-04-08 17:40:19 +02:00
Simon Sapin
5965dc6bfd Merge remote-tracking branch 'origin/hyphenation'
Conflicts:
	weasyprint/text.py
2013-04-08 11:00:19 +02:00
Simon Sapin
43419f8225 More working around floating point errors when shrink-to-fit = max-content. 2013-04-08 10:54:59 +02:00
Simon Sapin
9925fe45db Fix #71: crash when parsing nested functional notation. 2013-04-08 10:02:37 +02:00
Guillaume Ayoub
a5b58dbcda Remove trailing space's width in avoid_collisions 2013-04-07 23:47:03 +02:00
Simon Sapin
3f79655940 Add untest support for linear gradients. 2013-04-05 12:23:29 +02:00
Simon Sapin
d53f091b17 Prepare for multiple background-image types. 2013-04-05 12:23:29 +02:00
Simon Sapin
e4273872ac Convert angles to radians as soon as parsing. 2013-04-05 12:23:29 +02:00
Simon Sapin
11bd0db0a2 Use css-image-3 algoritms for list-style-image sizing. 2013-04-05 12:22:38 +02:00
Simon Sapin
6bcc6edc0f Clean up ex/ch, add a test. 2013-04-05 12:22:28 +02:00
Guillaume Ayoub
50ac168b94 Clean code and fix tests 2013-04-04 04:39:25 +02:00
Guillaume Ayoub
9f18ce63c3 Handle ex and ch units 2013-04-04 02:38:39 +02:00
Simon Sapin
8b78aa41c9 Use css-image-3 algoritms for background image sizing. 2013-04-03 18:15:32 +02:00
Simon Sapin
751d99cc78 Move background sizing and positioning from draw to layout. 2013-04-03 17:46:14 +02:00
Simon Sapin
242f24b576 Refactor background layout. 2013-04-03 17:27:07 +02:00
Simon Sapin
171438f48e 2013 2013-04-03 16:23:48 +02:00
Simon Sapin
0faaceb44f Have Image objects "render themselves" on a cairo Context. 2013-04-03 16:00:31 +02:00
Simon Sapin
e36006ea21 Introduce Image objects, with intrinsic width/height/ratio as attributes. 2013-04-03 13:34:14 +02:00
Simon Sapin
2dfc39ccc6 Negative font-size is invalid. 2013-04-02 18:32:15 +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
c53a01f18f Changelog for v0.18. 2013-03-30 23:44:12 +01:00
Simon Sapin
cef113c5a7 Add background-repeat: round 2013-03-30 23:43:19 +01:00
Simon Sapin
b5de53169c Add backgroun-repeat: space 2013-03-30 22:49:47 +01:00
Simon Sapin
8a28f0f08a Compat with cairocffi 0.4 / CFFI 0.6 2013-03-30 20:55:23 +01: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
0f37260c24 Docs: mention converting pycairo contexts to cairocffi. 2013-03-28 16:41:51 +01:00
Simon Sapin
c854feece9 Fix #21: Check for 'data' URL scheme case-insensitively. 2013-03-28 13:33:28 +01:00
Simon Sapin
86bc8b4978 Fix #66: Resolve images’ auto width from non-auto height and intrinsic ratio. 2013-03-28 12:44:28 +01:00
Simon Sapin
31d258ba84 Bug fix: use each layer’s own painting (clip) area 2013-03-26 14:07:44 +01:00
Simon Sapin
99541864a1 Simplify background-image a bit. 2013-03-26 13:56:11 +01:00
Simon Sapin
4265b4115a Add syntax for two keywords in background-repeat. 2013-03-26 12:04:00 +01:00
Simon Sapin
3d4c94acdc Prepare for L3 background-repeat. 2013-03-25 19:40:27 +01:00
Simon Sapin
055203cd97 Parse background-size in the background shorthand. 2013-03-25 19:05:04 +01:00
Simon Sapin
35b3c1ad8d Upgrade background-position to Level 3. 2013-03-25 18:59:18 +01:00
Simon Sapin
7fbd46f734 Work around floating point errors when shrink-to-fit = max-content. 2013-03-21 15:51:16 +01:00
Simon Sapin
e4f68e2b27 Prepare background-position internals for Level 3 syntax. 2013-03-21 15:46:07 +01:00
Simon Sapin
c8bd3a3782 Allow percentages in background-size. 2013-03-21 12:53:53 +01:00
Simon Sapin
92b2045ed7 The background shorthands accepts values for -clip and -origin. 2013-03-20 16:19:26 +01:00
Simon Sapin
7a4faac087 Add background-attachement: local, same as scroll.
Since we have no scrolling mechanism,
local and scroll are treated the same.
2013-03-20 13:34:13 +01:00
Simon Sapin
1616e37259 Upgrade the background shorthand for multiple layers. 2013-03-20 13:19:48 +01:00
Simon Sapin
911ed43169 Add support for multiple backgrounds (except for the shorthand.) 2013-03-19 18:29:58 +01:00
Simon Sapin
f284205e78 Changelog for v0.17.1 2013-03-18 19:40:53 +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
408b7d6605 Fix #49: Division by 0 on dashed or dotted border smaller than one dot/dash. 2013-03-18 13:44:12 +01:00
Simon Sapin
4c04bcd1a9 Fix URL escaping of image references from CSS. 2013-03-18 12:09:57 +01:00
Guillaume Ayoub
158d4cf2a1 Prefix 'hyphens' in the user agent stylesheet 2013-03-14 18:11:58 +01:00
Guillaume Ayoub
59daa1a827 Don't render abosolute boxes twice 2013-03-13 18:50:21 +01:00
Guillaume Ayoub
163f9a04db Merge branch 'master' of github.com:Kozea/WeasyPrint 2013-03-13 13:50:29 +01:00
Guillaume Ayoub
4011792ee0 Don't remove spaces between inline blocks 2013-03-13 13:49:51 +01:00
Simon Sapin
89bd068990 Allow absolute URLs without a base URL. Fix #42. 2013-03-13 12:12:12 +01:00
Guillaume Ayoub
0e62dd3fb1 Merge branch 'master' into hyphenation 2013-03-11 23:45:47 +01:00
Guillaume Ayoub
8c960bd9a1 Merge branch 'master' of github.com:Kozea/WeasyPrint 2013-03-11 19:05:19 +01:00
Guillaume Ayoub
84e67995df Don't strip non-breaking spaces when setting width=0 on empty inline boxes 2013-03-11 19:04:00 +01:00
Simon Sapin
e8581dbd09 Ooops. Fix g_type_init() call. 2013-03-11 15:32:29 +01:00
Simon Sapin
cbba64983d Try to make glib happy, call g_type_init() 2013-03-08 15:09:45 +01:00
Guillaume Ayoub
fe9382d716 Remove print() 2013-03-06 18:53:43 +01:00
Guillaume Ayoub
efc089aceb Add hyphenate-limit-chars 2013-03-02 04:41:32 +01:00
Guillaume Ayoub
10d917d1a2 Add hyphenate-limit-zone 2013-03-02 03:42:36 +01:00
Guillaume Ayoub
b5e1fafa5d Add hyphenate-character 2013-03-02 02:45:48 +01:00
Guillaume Ayoub
987feb6a84 Clean the line splitter 2013-03-02 01:33:37 +01:00
Simon Sapin
c49f060c9f Add support for -weasy-hyphens: none, cache hyphenation dictionaries 2013-02-27 13:44:57 +01:00
Simon Sapin
b7ed4a906f Tweak hyphenation and add a micro-test. 2013-02-26 19:45:00 +01:00
Simon Sapin
54df780ae7 Require Pyphen.
It is pure-python and self-contained (with dictionaries)
2013-02-26 18:50:57 +01:00
Simon Sapin
43489dec07 Merge branch 'master' into hyphenation
Conflicts:
	weasyprint/text.py
2013-02-26 18:16:59 +01:00
Simon Sapin
f7e78c488f Back to native strings for CFFI, still required on PyPy :( 2013-02-26 17:12:08 +01:00
Simon Sapin
46715ad7a2 Try alternative shared library names for Windows. 2013-02-26 15:05:53 +01:00