From 4314ca3996a7668b0bc546248d0a38465a21e679 Mon Sep 17 00:00:00 2001 From: RavSinghChandan Date: Sat, 14 Nov 2026 11:48:58 +0530 Subject: [PATCH] SVG: accept a in a --- CHANGELOG.md | 1 + fpdf/svg.py | 9 ++++++--- test/svg/test_svg.py | 15 +++++++++++++++ 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 021962aef..b235ff86f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ This can also be enabled programmatically with `warnings.simplefilter('default', * Chinese translation of the [Tuto 7 - Creating PDF/A Documents](https://py-pdf.github.io/fpdf2/Tutorial-zh.html#-pdfa) tutorial section - _cf._ [issue #267](https://github.com/py-pdf/fpdf2/issues/267) - _cf._ [PR #2138](https://github.com/py-pdf/fpdf2/pull/2138) - thanks to @zheng-guannan577* * `FPDF.write_html()` makes the `id` of an element, and the `name` of an ``, a named destination, so that `` links within the document work, like in browsers, instead of raising `FPDFException: Named destination ... was referenced but never set` - thanks to @RavSinghChandan ### Fixed +* SVG: a `` in a `` no longer fails with `TypeError: ShapeBuilder.line() takes 2 positional arguments but 3 were given`; it has no area, so it clips everything away, as in browsers - thanks to @RavSinghChandan * SVG: an `@import`, `@charset` or other at-rule without a block at the start of a `