From 3929426a5aabbb6819b0d9eb473492e1aa075a7d Mon Sep 17 00:00:00 2001 From: Eduard Braun Date: Tue, 30 Aug 2016 22:32:57 +0200 Subject: [PATCH] Add some attributes that fit into the list of the previous commit, too --- scour/scour.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scour/scour.py b/scour/scour.py index d4e55bc..31cf1e7 100644 --- a/scour/scour.py +++ b/scour/scour.py @@ -2971,11 +2971,14 @@ def serializeXML(element, options, ind = 0, preserveWhitespace = False): # now serialize the other attributes known_attr = [ + # TODO: Maybe update with full list from https://www.w3.org/TR/SVG/attindex.html + # (but should be kept inuitively ordered) 'id', 'class', 'transform', 'x', 'y', 'z', 'width', 'height', 'x1', 'x2', 'y1', 'y2', + 'dx', 'dy', 'rotate', 'startOffset', 'method', 'spacing', 'cx', 'cy', 'r', 'rx', 'ry', 'fx', 'fy', - 'd', + 'd', 'points', ] + sorted(svgAttributes) + [ 'style', ]