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:
parent
ae20af4181
commit
fcd4e90ea7
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue