diff --git a/src/parser.c b/src/parser.c index ca8e51d..8cca87c 100644 --- a/src/parser.c +++ b/src/parser.c @@ -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; }