1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-05 08:27:22 +03:00
WeasyPrint/weasyprint
Guillaume Ayoub 5c9a07bf1a Create first-letter box after white space handling
As ::first-letter depends on white space handling, we must create the
box after collapsing spaces, not during the build of the box tree.

This commit makes WeasyPrint pass most of the W3C tests related to
first-letter (and never crash). Known problems left include:

- list markers are considered as the first letter,
- lines may break between the first letter and the rest of the text
  (see #163 and #301),
- the CSS attributes are all kept, some should probably be removed (the
  spec doesn't give a whole list).

Even if W3C tests makes me quite confident (some of them are crazy),
tests must be added in WeasyPrint too.
2017-01-02 13:23:42 +01:00
..
css Always use two colons for pseudo-elements 2016-12-04 16:43:49 +01:00
formatting_structure Create first-letter box after white space handling 2017-01-02 13:23:42 +01:00
layout Create first-letter box after white space handling 2017-01-02 13:23:42 +01:00
tests Merge branch 'master' into first 2017-01-02 12:14:49 +01:00
__init__.py Version 0.34 2016-12-21 01:11:23 +01:00
__main__.py Add an option to follow presentational hints 2016-08-30 19:10:53 +02:00
compat.py Support text-transform: full-witdh 2016-08-21 00:47:13 +02:00
document.py Add the font configuration in LayoutContext 2016-10-27 17:36:24 +02:00
draw.py Optimize font metrics 2016-11-02 12:55:01 +01:00
fonts.py Correctly close files open by mkstemp 2016-12-07 18:25:58 +01:00
html.py Don't always copy boxes 2016-11-01 04:31:15 +01:00
images.py Try to render images as SVG first when sniffing 2016-11-21 09:29:55 +01:00
logger.py Add a better default formatter for logs 2016-10-28 18:03:57 +02:00
navigator.py Fixed a typo. 2016-09-28 10:30:54 +07:00
pdf.py Fix many PEP8 errors and warnings 2016-01-15 12:48:25 +01:00
stacking.py Don't always copy boxes 2016-11-01 04:31:15 +01:00
text.py Use second line's index instead of first line length 2016-11-22 02:37:04 +01:00
urls.py Use FILESYSTEM_ENCODING when encoding file:// URLs 2016-08-17 00:52:11 +02:00