Fix for #103 - don't drop empty dd tags.

This commit is contained in:
Jim Derry 2015-02-01 18:46:31 +08:00
parent 5897b66e1e
commit 6f9dc2327e

View file

@ -317,6 +317,11 @@ static Bool CanPrune( TidyDocImpl* doc, Node *element )
if ( nodeIsOPTION(element) && element->attributes != NULL )
return no;
/* fix for #103 - don't drop empty dd tags lest document not validate */
if (nodeIsDD(element))
return no;
return yes;
}