With the new _build_html_tag method, there's no need to clear any whitespace anymore. This method will not generate extra spaces between attributes when some of the attributes are empty.
This way the module still tests correctly (after minor whitespace changes in strings), but it should no longer break on doubled spaces as explained in the issue. I implemented (reused) a test which makes sure extra spaces are preserved.
Resolves #10
With the new
_build_html_tag
method, there's no need to clear any whitespace anymore. This method will not generate extra spaces between attributes when some of the attributes are empty.This way the module still tests correctly (after minor whitespace changes in strings), but it should no longer break on doubled spaces as explained in the issue. I implemented (reused) a test which makes sure extra spaces are preserved.