scour
scour copied to clipboard
Option to not remove default attribute values
At the moment default attribute values are always removed. I'm interested in whether an attribute has been set or not even if it's to the default so a flag to disable this behaviour would be useful.
Sounds fine to me.
You want to create a pull request for https://github.com/callanmcnamara/scour/commit/2d427cf4b3f02911c7450aa1cf980d0cc78d3eb5?
I'd prefer the option to be renamed as --keep-default-attributes
, though.
Also a unittest in testscour.py
to check if this setting works for some typical attributes would be much appreciated.