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

777 Commits

Author SHA1 Message Date
Simon Sapin
4b69eaf5f8 Make --help ASCII only, fix #127 2013-10-14 15:07:05 +01: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
3d816023dd Remove stupid line in test, fixes pypy support 2013-08-12 13:32:18 +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
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
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