Fix issue where console app and API can't set an FPI for a doctype without

providing a quoted string. This is especially painful in a terminal, which
requires escaping quotes. Since all FPI's must start with + or -, this fixes
the issue.
This commit is contained in:
Jim Derry 2017-11-19 12:54:08 -05:00
parent ae20af4181
commit fcd4e90ea7

View file

@ -1620,7 +1620,7 @@ Bool ParseDocType( TidyDocImpl* doc, const TidyOptionImpl* option )
/* "-//ACME//DTD HTML 3.14159//EN" or similar */
if ( c == '"' || c == '\'' )
if ( c == '"' || c == '\''|| c == '-' || c == '+' )
{
status = ParseString(doc, option);
if (status)