Eitot
aa1842fa45
Add unit tests for new options
2016-08-29 19:39:08 +02:00
Eduard Braun
842123a393
Fix improper comparison of numeric default attribute values with textvalues resulting in wrongly removed attributes ( #101 )
...
For example for `orient="auto"` SVGLength() returns (value=0, units=Unit.INVALID); since the default value for `orient` is zero it was removed as there was check for a valid unit.
2016-08-29 06:37:28 +02:00
Eduard Braun
5844076258
Only attempt to group elements that the content model allows to be children of a <g> when --create-groups is specified. ( #98 )
...
(before it could happen that e.g. `tspan` elements were grouped, which is invalid; fixes issues #96 and #97 )
2016-08-29 02:33:13 +02:00
Eduard Braun
cbda5dcd86
Add unittests for #66
2016-08-26 23:45:44 +02:00
Eduard Braun
386d5d8656
Allow elements to be found via Document.getElementById() in the minidom document returned by scourXmlFile() ( #68 )
2016-08-25 21:13:09 +02:00
Eduard Braun
fe2884c3e8
Don't remove unreferenced defs if --keep-unreferenced-defs is specified ( #62 )
...
* Don't remove unreferenced defs if `--keep-unreferenced-defs` is specified
(fixes #18 )
* Add unittests for previous commit
2016-08-14 18:52:55 +02:00
Tobias Oberstein
b14e801cb7
add option to check and warn or bail out on flowtext
2016-04-02 16:49:10 +02:00
Eduard Braun
946ca3ce4a
Unittests: Add a test for proper decoding of ISO 8859-15
2015-12-09 21:32:18 +01:00
Eduard Braun
4eade69201
Open input file in binary mode an let XML parser deal with encoding.
...
Fixes #26
2015-12-08 23:38:06 +01:00
Eduard Braun
32e7e5517f
Unittests: Account for b979fe19e5 (fix one test and add two more)
...
- Unused XML namespace declarations *are supposed* to be removed
- XML namespace declarations that are used as prefix for elements/attributes *must not* be removed
2015-12-07 00:33:08 +01:00
Eduard Braun
3b7e8a0091
Restore unittests from history
2015-12-06 19:59:06 +01:00