From fcd4e90ea7b45bf290cd68296a568e673fc34498 Mon Sep 17 00:00:00 2001 From: Jim Derry Date: Sun, 19 Nov 2017 12:54:08 -0500 Subject: [PATCH] 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. --- src/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.c b/src/config.c index 084a0c6..0174311 100644 --- a/src/config.c +++ b/src/config.c @@ -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)