Tidy should only generate valid XML in console output, too.
This commit is contained in:
parent
f62e59d813
commit
f76c261523
|
@ -1391,20 +1391,13 @@ static void version( void )
|
|||
**/
|
||||
static void printXMLOptionString( TidyDoc tdoc, TidyOption topt, OptionDesc *d )
|
||||
{
|
||||
tmbstr description;
|
||||
ctmbstr rawDescription = tidyOptGetDoc( tdoc, topt );
|
||||
|
||||
if ( tidyOptIsReadOnly(topt) )
|
||||
return;
|
||||
|
||||
description = cleanup_description( rawDescription );
|
||||
|
||||
printf( " <option>\n" );
|
||||
printf( " <name>%s</name>\n",d->name);
|
||||
printf( " <description class=\"%s\">%s</description>\n", tidyGetLanguage(), description );
|
||||
printf( " <raw class=\"%s\"><![CDATA[%s]]></description>\n", tidyGetLanguage(), rawDescription );
|
||||
printf( " <string class=\"%s\"><![CDATA[%s]]></string>\n", tidyGetLanguage(), tidyOptGetDoc( tdoc, topt ) );
|
||||
printf( " </option>\n" );
|
||||
free( description );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue