From f2b87ccd7ba023c5c51d0db691674fb995ad720f Mon Sep 17 00:00:00 2001 From: Jim Derry Date: Fri, 29 Sep 2017 10:42:21 -0400 Subject: [PATCH] Address #542 - change message to indicated missing quote is only suspected. - change severity to TidyWarning. - Update POT with new string. --- localize/translations/tidy.pot | 4 ++-- src/language_en.h | 2 +- src/message.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/localize/translations/tidy.pot b/localize/translations/tidy.pot index aee2879..c95a730 100644 --- a/localize/translations/tidy.pot +++ b/localize/translations/tidy.pot @@ -5,7 +5,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: HTML Tidy poconvert.rb\n" "Project-Id-Version: \n" -"POT-Creation-Date: 2017-09-28 13:24:51\n" +"POT-Creation-Date: 2017-09-29 10:42:01\n" "Last-Translator: jderry\n" "Language-Team: \n" @@ -2480,7 +2480,7 @@ msgid "unknown option: %s" msgstr "" msgctxt "SUSPECTED_MISSING_QUOTE" -msgid "missing quote mark for attribute value" +msgid "suspected missing quote mark for attribute value" msgstr "" #, c-format diff --git a/src/language_en.h b/src/language_en.h index 97291e6..9567306 100644 --- a/src/language_en.h +++ b/src/language_en.h @@ -1928,7 +1928,7 @@ static languageDefinition language_en = { whichPluralForm_en, { { SPACE_PRECEDING_XMLDECL, 0, "removing whitespace preceding XML Declaration" }, { STRING_MISSING_MALFORMED, 0, "missing or malformed argument for option: %s" }, { STRING_UNKNOWN_OPTION, 0, "unknown option: %s" }, - { SUSPECTED_MISSING_QUOTE, 0, "missing quote mark for attribute value" }, + { SUSPECTED_MISSING_QUOTE, 0, "suspected missing quote mark for attribute value" }, { TAG_NOT_ALLOWED_IN, 0, "%s isn't allowed in <%s> elements" }, { TOO_MANY_ELEMENTS_IN, 0, "too many %s elements in <%s>" }, { TOO_MANY_ELEMENTS, 0, "too many %s elements" }, diff --git a/src/message.c b/src/message.c index dbfd303..fc2ea89 100644 --- a/src/message.c +++ b/src/message.c @@ -338,7 +338,7 @@ static struct _dispatchTable { { STRING_MISSING_MALFORMED, TidyConfig, formatStandard }, { STRING_NO_SYSID, TidyInfo, formatStandard }, /* reportMarkupVersion() */ { STRING_UNKNOWN_OPTION, TidyConfig, formatStandard }, - { SUSPECTED_MISSING_QUOTE, TidyError, formatStandard }, + { SUSPECTED_MISSING_QUOTE, TidyWarning, formatStandard }, { TAG_NOT_ALLOWED_IN, TidyWarning, formatStandard, PREVIOUS_LOCATION }, { TOO_MANY_ELEMENTS_IN, TidyWarning, formatStandard, PREVIOUS_LOCATION }, { TOO_MANY_ELEMENTS, TidyWarning, formatStandard },