1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-05 08:27:22 +03:00
Commit Graph

60 Commits

Author SHA1 Message Date
Lucie Anglade
a9a24f754f Use download attribute in <a> to define filename for attachment 2020-09-10 00:51:03 +02:00
Guillaume Ayoub
b40ad461be Remove repeated copyright assignments in files
Everything is replaced by a more explicit message in the COPYRIGHT file.

Inspired by rust-lang/rust#43498 and rust-lang/rust#57108.
2020-01-02 14:10:09 +01:00
Guillaume Ayoub
89b31be485 Use a CounterStyle type for UA counter styles 2019-12-27 11:52:44 +01:00
Guillaume Ayoub
73244891f4 Add base code for @counter-style rules 2019-12-24 14:39:40 +01:00
Tontyna
3d4f18b916 Add html element to Box class
Unless the Box is a PageBox or a MarginBox the new attribute `element` points
to the html element (xml.etree.ElementTree.Element) where the Box stems from.
This enables e.g. post-processing that depends on Element attributes, like
'class' or 'id'.

Caution: Elements with no subelements will test as False! Test the element's
existence with `if box.element is not None:`.

Related to #434, #970.
2019-10-17 23:41:36 +02:00
Guillaume Ayoub
b8c19a2878 Heal my psychotic desorders 2019-08-17 11:04:57 +02:00
Tontyna
b5a4cb739c fix erroneous document title 2019-08-16 22:01:46 +02:00
Guillaume Ayoub
b7a9fe7dcc Update copyright 2019-03-04 11:04:06 +01:00
Guillaume Ayoub
b1c144488f Use pathlib's syntax everywhere for ROOT 2019-02-06 18:38:16 +01:00
Guillaume Ayoub
f5dae8a3ee Copy bookmarks and string sets when creating replaced boxes
Fix #722.
2018-11-02 14:32:14 +01:00
Guillaume Ayoub
8fb843556d Fix escape sequences 2018-10-26 15:18:49 +02:00
Guillaume Ayoub
56904baa79 Use the same copyright line everywhere 2018-09-20 18:46:27 +02:00
Guillaume Ayoub
0fe79762fa Use setup.cfg instead of setup.py for package metadata 2018-08-23 18:20:36 +02:00
Guillaume Ayoub
16e8186568 Drop Python 2 support 2018-01-14 01:48:17 +01:00
Guillaume Ayoub
724565f27a Don't allow attribute access to StyleDict objects 2018-01-13 17:05:23 +01:00
Guillaume Ayoub
4e3cfb5b1d
Merge pull request #528 from Kozea/text
Fix the line breaking algorithm
2017-11-16 17:37:09 +01:00
Guillaume Ayoub
bed99daf65 Add some comments about frozen distribution 2017-11-16 17:34:39 +01:00
Jonathan Metz
99038fb395 Fix root when frozen with pyinstaller 2017-11-15 21:47:53 -08:00
Guillaume Ayoub
8f7069a2d2 Use HTML_WHITESPACE when possible 2017-10-21 21:11:03 +02:00
Guillaume Ayoub
fcd6bf7070 Clean and document the logging levels
Related to #488.
2017-07-25 13:59:56 +02:00
Guillaume Ayoub
a0dba07b67 Don't store base_url in ElementWrappers 2017-07-07 11:14:07 +02:00
Guillaume Ayoub
a11eeba00e Use ElementTree's element to get its tag 2017-07-03 15:31:17 +02:00
Guillaume Ayoub
ba26fa34a9 Use ElementTree's elements as much as possible 2017-07-03 15:19:05 +02:00
Guillaume Ayoub
df50204f3e Remove unsupported source lines 2017-07-01 00:28:14 +02:00
Guillaume Ayoub
4a5fa84f9f Use cssselect2 instead of cssselect 2017-06-30 17:54:02 +02:00
Guillaume Ayoub
4f4b4ed598 Use isort in tests 2017-03-25 00:33:36 +01:00
Guillaume Ayoub
05d5e7d726 Don't always copy boxes 2016-11-01 04:31:15 +01:00
Guillaume Ayoub
68ddba2213 Remove empty line at the beginning of a file 2016-09-04 20:40:23 +02:00
Guillaume Ayoub
207694ac14 Use a stylesheet for some presentational hints 2016-08-31 22:33:26 +02:00
Guillaume Ayoub
b94546079d Fix the embed and object links in docstrings 2016-08-04 19:20:37 +02:00
Alex Eftimie
93f497bf11 Replace utf8 with utf-8 for gettext compatibility 2015-11-25 09:38:01 +02: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
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
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
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
Simon Sapin
e65b26f38b Fix parsing of <link rel> 2014-04-22 01:34:47 +01:00
Colin Leitner
a48d55a79c Replaced unnecessary call to setattr with direct assignment 2014-04-07 19:35:00 +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
Simon Sapin
c34221d215 2014. 2014-01-10 14:27:02 +00:00
Florian Mounier
e3d7bad55b Be careful logging.warn is deprecated 2013-08-19 14:38:09 +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
171438f48e 2013 2013-04-03 16:23:48 +02:00
Simon Sapin
39b553fae7 Add support for font-stretch, fix #7
The value is passed to Pango as-is. It may have no effect if
(for example) the chosen font has no expanded variant.
2012-08-17 17:37:33 +02:00
Simon Sapin
2614821fa9 Add support for <base href="..."> element in HTML. 2012-08-03 15:22:26 +02:00
Simon Sapin
627053da62 Read the HTML5 stylesheet from a file.
Windows filenames C:\... may look like URLs.
Make sure that the HTML5 UA stylesheet is always read from a file.
2012-07-27 00:31:03 +03:00