* Sat Mar 16 2024 Dirk Müller - update to 61.2: * Security: * Always use URL fetcher for attachments * #2075: Use default value when variable is not defined * #2070: Don’t crash when rendering SVGs with non-text a children * Don’t crash when SVG file can’t be rendered * Documentation: * #2067: Suggest \"dnf\" instead of \"yum\" to install Fedora packages * Improve documentation for Windows * Fix required version of TinyCSS2 * #1219, #2017: Support var() in shorthand and multiple-value functions * #1986: Support percentages for opacity * #2050: Build executable file for Windows * #2000: Support select fields * #1993: Handle background-attachment: fixed to cover the whole page * #2023, #2022: Allow text-based file objects for HTML and CSS classes * #2014: Remove warnings for PDF/A and PDF/UA compatibility * Bug fixes: * #2052, #1869: Handle attachments for PDF/A documents * #2013, #2051: Apply margin to running tables * #1278, #1884: Draw collapsed borders of running tables * #2029: Fix page counter in non-root absolute boxes * #2043: Fix text-anchor on SVG tspan elements * #1968, #2039: Use cell\'s border-height to calculate table row height * #2030: Ensure that bounding box is set to invisible text tags * #2040, #2041: Don’t crash on malformed URLs * #2026: Don’t break pages when fixed-height elements don’t overflow page * #2038: Don’t mix original streams when drawing transparent text * #2016: Avoid duplication when breaking out-of-flow boxes * #2012: Don’t crash when CSS properties have no value * #2010, #1287: Fix many corner cases with CSS variables * #1996: Don’t crash when drawing groove/ridge collapsed borders * #1982: Fix SVG markers size, position and drawing * Documentation: * #2021, #2048: Replace non-virtualenv installation instructions with distribution packages * Thu Jan 11 2024 Daniel Garcia - Add %{?sle15_python_module_pythons} * Fri Dec 29 2023 Dirk Müller - update to 60.2: * Fix SVG markers size, position and drawing * Draw background behind absolutely positioned replaced boxes * Don’t crash with bitmap fonts with no \"glyf\" table * Improve SVG text-anchor attribute * Fix crash caused by wrong UTF-8 indices * Print form fields * Add support for textLength and lengthAdjust in SVG text elements * Handle tag * Handle y offset of glyphs * Add a --timeout option * Bug fixes: * Fix footnote-call displayed incorrectly for some fonts * Fix page-margin boxes layout algorithm * Fix IndexError when rendering PDF version 1.4 * Apply text transformations to first-letter pseudo elements * Avoid footnote appearing before its call * Fix balance before \"column-span: all\" * Only draw required glyph with OpenType-SVG fonts * Don’t draw clipPath when defined after reference * Don’t ignore min-width when computing cell size * Fix named pages inheritance * Avoid page breaks caused by children of overflow hidden boxes * Use bleed area for page’s painting area * Use margin box of children to define available width for leaders * Wed Jun 14 2023 Marcus Rueckert - instead of having to maintain version information in multiple places refactor them out into defines for easier maintenance- switch to autosetup * Wed Jun 14 2023 Steve Kowalik - Update to 59.0: * New features: + a4fc7a1: Support image-orientation * Dependencies: + #1754: Pillow 9.1.0 is now needed * Bug fixes: + #1864: Handle overflow for svg and symbol tags in SVG images + #1867: Remove duplicate compression of attachments + d0ad5c1: Override use tag children instead of drawing their references + #1874: Drawn underline and overline behind text + #1822, #1823: Fix vertical positioning for absolute replaced elements + #1807: Don’t crash when out-of-flow box is split in out-of-flow parent + #1806: Don’t crash when fixed elements aren’t displayed yet in aborted line + #1809: Fix background drawing for out-of-the-page transformed boxes + #1764: Use reference instead of stream for annotation appearance stream + #1783: Fix multiple font weights for AATTfont-face declarations + #1756: Fix rem font size for SVG images + #1755: Keep format when transposing images + #1753: Don’t use deprecated read_text function when files is available + #1741: Generate better manpage + #1747: Correctly set target counters in pages’ absolute elements + #1748: Always set font size when font is changed in line + #1739: Set baseline on all flex containers + #1740: Don’t crash when currentColor is set on root svg tag + #1718: Don’t crash with empty bitmap glyphs + #1736: Always use the font’s vector variant when possible + #1662: Use a stable key to store stream fonts + #1733: Don’t remove attachments when adding internal anchors * Performance: + dfccf1b: Use faces as fonts dictionary keys + 0dc12b6: Cache add_font to avoid calling get_face too often + 75e17bf: Don’t call process_whitespace twice on many children + 498d3e1: Optimize __missing__ functions * Sat Sep 03 2022 Klaas Freitag - Update to version 56.1 * Support format 5 for bitmap glyphs * #1666: Fix reproducible PDF generation with embedded images * #1668: Fix AATTpage:nth() selector * #1674: Follow max-height on footnot area, with financial support from Code & Co. * #1678: Fix gradients with opacity set * Mon May 16 2022 Marcus Rueckert - Update to 55.0 Python 3.7 is now the minimum requirement - Features - #1534: Support word-break: break-all - #489, #1619: Support column breaks - #1553: Allow reproducible PDF generation - #1547: Handle break-inside: avoid on tr tags - Bugfixes - #1626, 3802f88: Fix the vertical position and available height of absolute boxes - 9641098, e5e6b88: Minor fixes for multi-column layout - 0fcc7de: Don’t stop rendering SVG when CSS parsing fails - #1636: Fix sequential footnotes that could disappear when overflowing - #1637: Fix position of absolute boxes with right-to-left direction - #1641: Fix relative paths for SVG files stored as data URLs - #1007, #1524: Handle inherit in shorthand properties - #1539, #1541: Space out no-repeat patterns - #1554: Avoid invalid PDF operators when drawing SVG text - #1564, #1566, #1570: Don’t output footnotes before their call sites - #1020, #1597: Prevent infinite loops in multi-column layout - #1512, #1613: Fix position of absolute boxes in right-to-left contexts - #1093: Draw borders around absolute replaced boxes - #984, #1604: Fix skip stacks for columns - #1621: Better support of nested text-decoration properties - fe1f3d9: Fix absolute blocks in lines - 4650b70: Clear adjoining margins when a container’s child doesn’t fit - #1588 Support position: absolute in footnotes - #1586 Fix discarded text-align values - #1575: Always store parent blocks children as lists - #1574, #1559: Fix float rounding errors - #1571: Ignore unknown glyphs - #1561, #1562: Fix line break when breaks occur between a nbsp and an inline block - #1560: Always set the child index - #1558: Fix patterns with use tags - #1540, #1239: Handle absolute children in running elements - #1538: Handle invalid values in text-align - #1536: Handle absolute flex boxes - Performance - #1548: Improve tests speed - 3b0ae92, #1457: Improve fonts management - #1597: Improve column layout speed - #1587, #1607, #1608: Cache ch and ex units calculations * Mon Jan 10 2022 Matej Cepl - Update to 54.0: - Always use absolute paths to get hrefs in SVG - Fix many rendering problems of broken tables - Fix support of fonts with SVG emojis - html5lib 1.1+ is now needed. - Support footnotes, with financial support from Code & Co. - Handle parallel flows for floats, absolutes, table-cells - Support ``text-align-last`` and ``text-align-all`` properties - Draw SVG and PNG emojis - Support ``overflow-wrap: anywhere`` - Cache SVG ``use`` tags - Encode non-JPEG images as PNGs instead of JPEG2000s - Don’t use ``text-transform`` text for content-based uses - Don’t serialize and parse again inline SVG files - Correctly handle whitespaces in bookmark labels - Fix column height with ``column-span`` content - Fix absolutely positioned boxes in duplicated pages - Fix ``target-counter`` attribute in flex items - Don’t draw empty glyphs - Don’t crash when font size is really small * Wed Dec 22 2021 Marcus Rueckert - port to the pyproject build to get the commandline for weasyprint back (boo#1194029) * Thu Dec 16 2021 Ben Greiner - Skip python36 build: FontTools dropped support- Update test and runtime requirements * Tue Dec 07 2021 pgajdosAATTsuse.com- do not require pytest-runner for build, it is not needed * Mon Nov 22 2021 Matej Cepl - Skip two tests which fail (gh#Kozea/WeasyPrint#1503) * Mon Nov 22 2021 Matej Cepl - Rename package to lower-case name (according to PyPI). * Sun Nov 21 2021 Axel Braun - enable all tests after upgrade of tinycss2 to 1.1.0 * Fri Nov 19 2021 Axel Braun - update to 53.4 for changelog see docs/changelog.rst * Fri Apr 30 2021 Markéta Machová - Update to 52.5 * Python 3.6+ is now needed, Python 3.5 is not supported anymore * Implement counter-set * Add support for concatenating var() functions in content declarations * Add an option to optimize embedded images size, with financial support from Hashbang * Add an image cache that can be shared between documents, with financial support from Hashbang * Fix URL handling with tinycss2Fix URL handling with tinycss2 * Add support of line-clamp, with financial support from expert Germany- Add quotes.patch to support tinycss older than 1.1.0 * Thu Sep 24 2020 Klaus Kämpf - require python-CairoSVG * Mon May 18 2020 Petr Gajdos - %python3_only -> %python_alternative * Fri Jan 17 2020 Tomáš Chvátal - Update to 51: * Speed and memory use have been largely improved. * #209: Make break- * properties work inside tables * #661: Make blocks with overflow: auto grow to include floating children * #882: Add support of element() and running() * #972: Add HTML element to Box class * 7a4d6f8: Support larger and smaller values for font-size * Mon Jul 29 2019 pgajdosAATTsuse.com- version update to 48 * New features: [#891]: Handle text-overflow [#878]: Handle column-span [#855]: Handle all the text-decoration features [#238]: Don\'t repeat background images when it\'s not needed [#875]: Handle object-fit and object-position [#870]: Handle bookmark-state [#843]: Handle CSS variables [#846]: Handle :nth() page selector [#847]: Allow users to use a custom SSL context for HTTP requests * Bug fixes: [#686]: Fix column balance when children are not inline [#885]: Actually use the content box to resolve flex items percentages [#867]: Fix rendering of KaTeX output, including (1) set row baseline of tables when no cells are baseline-aligned, (2) set baseline for inline tables, (3) don\'t align lines larger than their parents, (4) force CairoSVG to respect image size defined by CSS. [#873]: Set a minimum height for empty list elements with outside marker [#811]: Don\'t use translations to align flex items [#851], #860: Don\'t cut pages when content overflows a very little bit [#862]: Don\'t crash when using UTC dates in metadata [#797]: Fix underlined justified text [#836]: Fix crash when flex items are replaced boxes [#835]: Fix margin-break: auto * Documentation: [#854]: Add a \"Tips & Tricks\" section * Thu Mar 21 2019 Tomáš Chvátal - Update to v46: * #771: Handle box-decoration-break * #115: Handle margin-break * #821: Continuous integration includes tests on Windows * Tue Feb 26 2019 John Vandenberg - Disable building with pytest extensions intended for developers- Add license- Activate test suite- Update to v45 * Python 3.5+ is now needed, Python 3.4 is not supported anymore * Bug fixes + Prevent endless loop and index out of range in pagination + Add a --quiet CLI parameter + Fix library loading on Alpine + Use path2url in tests for Windows + Add LICENSE file to distributed sources + Fix pending references + Don\'t draw patterns for empty page backgrounds + Don\'t crash when links include quotes + Fix a problem with justified text + Launch tests with Python 3.7 + Fix a corner case with tables + Don\'t logger handlers defined before importing WeasyPrint + Don\'t include punctuation for hyphenation + Don\'t crash when people use uppercase words from old-fashioned Microsoft fonts in tables, especially when there\'s an 5th column + Use a separate logger to report the rendering process + Add a --debug CLI parameter and set debug level for unknown prefixed CSS properties + Define minimal versions of Python and setuptools in setup.cfg * Documentation + Fix a small typo in the tutorial + Document no alignement character support + Fix phrasing in Hacking section + Add a paragraph about fontconfig error + Fix list of dependencies for Alpine + Fix API documentation of HTML and CSS classes- from v44 * Bug fixes + Don\'t crash during PDF generation when locale uses commas as decimal separator + Close file when reading VERSION + Improve speed and memory usage for long texts. * Documentation: + Small documentation fixes + Fix broken links in NEWS.rst- from v43 * Bug fixes + Make empty strings clear previous values of named strings + Include tools in packaging * Tue Dec 04 2018 Matej Cepl - Remove superfluous devel dependency for noarch package * Sun Jun 10 2018 jengelhAATTinai.de- Use noun phrase in summary. * Thu Jun 07 2018 toddrme2178AATTgmail.com- Fix pango dependency * Wed May 16 2018 toddrme2178AATTgmail.com- Update to Version 0.42 + New features: * `#532 `_: Support relative file URIs when using CLI. + Bug fixes: * `#553 `_: Fix slow performance for pre-formatted boxes with a lot of children. * `#409 `_: Don\'t crash when rendering some tables. * `#39 `_: Fix rendering of floats in inlines. * `#301 `_: Split lines carefully. * `#530 `_: Fix root when frozen with Pyinstaller. * `#534 `_: Handle SVGs containing images embedded as data URIs. * `#360 `_: Fix border-radius rendering problem with some PDF readers. * `#525 `_: Fix pipenv support. * `#227 `_: Smartly handle replaced boxes with percentage width in auto-width parents. * `#520 `_: Don\'t ignore CSS AATTpage rules that are imported by an AATTimport rule.- Update to Version 0.41 + New features: * `#471 `_: Support page marks and bleed. + Bug fixes: * `#513 `_: Don\'t crash on unsupported image-resolution values. * `#506 `_: Fix AATTfont-face use with write_ * methods. * `#500 `_: Improve readability of _select_source function. * `#498 `_: Use CSS prefixes as recommanded by the CSSWG. * `#441 `_: Fix rendering problems and crashes when using AATTfont-face. * `bb3a4db `_: Try to break pages after a block before trying to break inside it. * `1d1654c `_: Fix and test corner cases about named pages. + Documentation: * `#508 `_: Add missing libpangocairo dependency for Debian and Ubuntu. * `a7b17fb `_: Add documentation on logged rendering steps.- Update to Version 0.40 + New features: * `#57 `_: Named pages. * Unprefix properties, see `#498 `_. * Add a \"verbose\" option logging the document generation steps. + Bug fixes: * `#483 `_: Fix slow performance with long pre-formatted texts. * `#70 `_: Improve speed and memory usage for long documents. * `#487 `_: Don\'t crash on local() fonts with a space and no quotes.- Update to Version 0.39 + Bug fixes: * Fix the use of WeasyPrint\'s URL fetcher with CairoSVG.- Update to Version 0.38 + Bug fixes: * `#477 `_: Don\'t crash on font-face\'s src attributes with local functions.- Update to Version 0.37 + New features: * `#437 `_: Support local links in generated PDFs. + Bug fixes: * `#412 `_: Use a NullHandler log handler when WeasyPrint is used as a library. * `#417 `_, `#472 `_: Don\'t crash on some line breaks. * `#327 `_: Don\'t crash with replaced elements with height set in percentages. * `#467 `_: Remove incorrect line breaks. * `#446 `_: Let the logging module do the string interpolation.- Update to Version 0.36 + New features: * `#407 `_: Handle ::first-letter. * `#423 `_: Warn user about broken cairo versions. + Bug fixes: * `#411 `_: Typos fixed in command-line help.- Update to Version 0.35 + Bug fixes: * `#410 `_: Fix AssertionError in split_text_box.- Update to Version 0.34 + Bug fixes: * `#398 `_: Honor the presentational_hints option for PDFs. * `#399 `_: Avoid CairoSVG-2.0.0rc * on Python 2. * `#396 `_: Correctly close files open by mkstemp. * `#403 `_: Cast the number of columns into int. * Fix multi-page multi-columns and add related tests.- Update to Version 0.33 + New features: * `#393 `_: Add tests on MacOS. * `#370 `_: Enable AATTfont-face on MacOS. + Bug fixes: * `#389 `_: Always update resume_at when splitting lines. * `#394 `_: Don\'t build universal wheels. * `#388 `_: Fix logic when finishing block formatting context.- Update to Version 0.32 + New features: * `#28 `_: Support AATTfont-face on Linux. * Support CSS fonts level 3 almost entirely, including OpenType features. * `#253 `_: Support presentational hints (optional). * Support break-after, break-before and break-inside for pages and columns. * `#384 `_: Major performance boost. + Bux fixes: * `#368 `_: Respect white-space for shrink-to-fit. * `#382 `_: Fix the preferred width for column groups. * Handle relative boxes in column-layout boxes. + Documentation: * Add more and more documentation about Windows installation. * `#355 `_: Add fonts requirements for tests.- Update to Version 0.31 + New features: * `#124 `_: Add MIME sniffing for images. * `#60 `_: CSS Multi-column Layout. * `#197 `_: Add hyphens at line breaks activated by a soft hyphen. + Bux fixes: * `#132 `_: Fix Python 3 compatibility on Windows. + Documentation: * `#329 `_: Add documentation about installation on Windows.- Update to Version 0.30 + Bux fixes: * Fix Acid2 * `#325 `_: Cutting lines is broken in page margin boxes. * `#334 `_: Newest html5lib 0.999999999 breaks rendering.- Update to Version 0.29 + Bug fixes: * `#263 `_: Don\'t crash with floats with percents in positions. * `#323 `_: Fix CairoSVG 2.0 pre-release dependency in Python 2.x.- Update to Version 0.28 + Bug fixes: * `#189 `_: ``white-space: nowrap`` still wraps on hyphens * `#305 `_: Fix crashes on some tables * Don\'t crash when transform matrix isn\'t invertible * Don\'t crash when rendering ratio-only SVG images * Fix margins and borders on some tables- Update to Version 0.27 + New features: * `#295 `_: Support the \'rem\' unit. * `#299 `_: Enhance the support of SVG images. + Bug fixes: * `#307 `_: Fix the layout of cells larger than their tables. + Documentation: * The website is now on GitHub Pages, the documentation is on Read the Docs. * `#297 `_: Rewrite the CSS chapter of the documentation.- Update to Version 0.26 + New features: * Support the `empty-cells` attribute. * Respect table, column and cell widths. + Bug fixes: * `#172 `_: Unable to set table column width on tables td\'s. * `#151 `_: Table background colour bleeds beyond table cell boundaries. * `#260 `_: TypeError: unsupported operand type(s) for +: \'float\' and \'str\'. * `#288 `_: Unwanted line-breaks in bold text. * `#286 `_: AttributeError: \'Namespace\' object has no attribute \'attachments\'.- Update to Version 0.25 + New features: * Support the \'q\' unit. + Bug fixes: * `#285 `_: Fix a crash happening when splitting lines. * `#284 `_: Escape parenthesis in PDF links. * `#280 `_: Replace utf8 with utf-8 for gettext/django compatibility. * `#269 `_: Add support for use when frozen. * `#250 `_: Don\'t crash when attachments are not available.- Implement single-spec version * Sat Nov 07 2015 jacobwinskiAATTgmail.com- Update to 0.24: + New features: * Basic support for Named strings. + Bug fixes: * Draw rounded corners on replaced boxes. * Rely on the font size for rounding bug workaround. * Honor the vertical-align property in fixed-height cells. * Remove unreachable area/border at bottom of page. * Don\'t allow unknown units during line-height validation. * Fix some wrong conflict resolutions for table borders with inset and outset styles.- Update to 0.23: + Bug fixes: * Use the default image sizing algorithm for images’s preferred size. * Try more library aliases with ``dlopen()``. * Consider ``page-break-after-avoid`` when pushing floats to the next page. * Avoid a crash on zero-sized background images.- Update to 0.22: + New features: * Support gzip and deflate encoding in HTTP responses * Support for PDF attachments. + Bug fixes: * Fix a crash on percentage-width columns in an auto-width table. * Make ``