Go to file
Guillaume Ayoub a859d8d599 Don't optimize resume_at when splitting lines with trailing spaces
Fix #586.

For some reason I don't really understand, stripping trailing spaces that would
make the line too long can't be optimized when the space is at the end of the
block. Returning None instead of the index of the last letter should be
possible, but it breaks the rendering when the first letter of the next line
box starts with a character that doesn't allow line breaks after spaces (many
punctuation characters for example) and that doesn't allow line wrap.

This change shouldn't be harmful, as the removed code lines were just cleaning
the resume_at value without changing the logic of line breaking. I suppose that
there's a bug somewhere else.
2018-03-27 22:30:22 +02:00
docs There's no need to remove the default null log handler 2018-03-27 22:29:05 +02:00
weasyprint Don't optimize resume_at when splitting lines with trailing spaces 2018-03-27 22:30:22 +02:00
.coveragerc Fix coveragerc 2017-07-30 14:03:17 +02:00
.gitignore Add tests cache into gitignore 2017-06-30 23:08:30 +02:00
.gitmodules Use the RTD theme 2016-02-21 02:13:05 +01:00
.isort.cfg Set isort's multi_line_output value in configuration 2017-06-03 15:32:31 +02:00
.pylintrc Better reporting of image errors. 2011-12-26 11:48:40 +01:00
.travis.yml Drop official Python 3.3 support 2017-12-09 14:59:19 +01:00
AUTHORS Update AUTHORS and CHANGES 2016-02-11 23:14:23 +01:00
CHANGES Version 0.42.2 2018-02-04 16:38:14 +01:00
LICENSE 2014. 2014-01-10 14:27:02 +00:00
MANIFEST.in Start some documentation with Sphinx 2012-09-19 15:11:02 +02:00
README.rst Drop official Python 3.3 support 2017-12-09 14:59:19 +01:00
setup.cfg Set coverage only on weasyprint 2017-08-17 08:57:38 +02:00
setup.py Drop official Python 3.3 support 2017-12-09 14:59:19 +01:00
weasyprint.py Move the whole 'weasy' package to 'weasyprint' 2012-02-14 12:49:33 +01:00

README.rst

WeasyPrint
##########

.. image:: https://img.shields.io/pypi/l/WeasyPrint.svg?style=flat-square
    :target: https://pypi.python.org/pypi/WeasyPrint/
    :alt: License

.. image:: http://img.shields.io/pypi/v/WeasyPrint.svg?style=flat-square
    :target: https://pypi.python.org/pypi/WeasyPrint/
    :alt: Latest Version

.. image:: http://img.shields.io/travis/Kozea/WeasyPrint.svg?style=flat-square
    :target: http://travis-ci.org/Kozea/WeasyPrint
    :alt: Build status

|

WeasyPrint is a visual rendering engine for HTML and CSS that can export
to PDF. It aims to support web standards for printing.
WeasyPrint is free software made available under a BSD license.

It is based on various libraries but *not* on a full rendering engine like
WebKit or Gecko. The CSS layout engine is written in Python, designed for
pagination, and meant to be easy to hack on.

* Free software: BSD licensed
* Python 2.7 or 3.4+
* Website: http://weasyprint.org/
* Latest documentation: http://weasyprint.org/docs/
* Source code and issue tracker: https://github.com/Kozea/WeasyPrint