Guillaume Ayoub
2d19becf19
Improve SVG support
2021-04-30 18:13:08 +02:00
Guillaume Ayoub
4f35e063d6
Add TODO for inline svg tags
2021-04-29 22:38:35 +02:00
Guillaume Ayoub
71c49b58d1
Don’t crash when UA stylesheets can’t be read
...
That’s the case when flit builds packages and tries to get the package version.
2021-04-27 22:51:11 +02:00
Guillaume Ayoub
c76e1a3ba6
Use pkgutil instead of manual ROOT to load data
...
It avoids useless code and should work with all the packagers.
2021-04-27 22:11:27 +02:00
Guillaume Ayoub
e6bd2b3084
Handle inline SVG
...
Related to #75 .
2021-03-25 16:50:01 +01:00
Guillaume Ayoub
03183fb312
Add a lot of documentation
2021-02-18 21:03:40 +01:00
Guillaume Ayoub
82007aeb17
Remove many getattrs
2021-01-20 22:14:44 +01:00
Guillaume Ayoub
12999bded8
Merge branch 'master' into pydyf
2020-10-23 12:36:03 +02:00
Lucie Anglade
a9a24f754f
Use download attribute in <a> to define filename for attachment
2020-09-10 00:51:03 +02:00
Guillaume Ayoub
9372b94e8d
Clean formatted strings
2020-05-30 15:55:44 +02:00
Guillaume Ayoub
11901bb9ea
Clean document.py
2020-05-30 01:11:30 +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