Fix for #103 - don't drop empty dd tags.
This commit is contained in:
parent
5897b66e1e
commit
6f9dc2327e
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue