I tried to clean the following html snippet:
expected to be:
by setting option tidy.setMakeClean(true) and tidy.setWord2000(true), but doesn't work.
While for div tag, above cleaning works.
Looking at the Clean.java, the mothod mergeDivs() is there but something like mergeSpans() is not found.
The clean-nested-span-tag feature is implemented in C based code.