diff --git a/CMakeLists.txt b/CMakeLists.txt index 687349e..cd11581 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -85,7 +85,7 @@ add_definitions ( -DSUPPORT_ASIAN_ENCODINGS=1 ) add_definitions ( -DSUPPORT_ACCESSIBILITY_CHECKS=1 ) add_definitions ( -DLIBTIDY_VERSION="${LIBTIDY_VERSION}" ) add_definitions ( -DRELEASE_DATE="${tidy_YEAR}/${tidy_MONTH}/${tidy_DAY}" ) -### add_definitions ( -DRC_NUMBER="RC1" ) +add_definitions ( -DRC_NUMBER="D231" ) # Issue #188 - Support user items in platform.h if (TIDY_CONFIG_FILE) diff --git a/src/config.c b/src/config.c index db11b87..9ac6b9e 100644 --- a/src/config.c +++ b/src/config.c @@ -309,7 +309,7 @@ static const TidyOptionImpl option_defs[] = { TidyEmptyTags, MU, "new-empty-tags", ST, 0, ParseTagNames, NULL }, { TidyPreTags, MU, "new-pre-tags", ST, 0, ParseTagNames, NULL }, { TidyAccessibilityCheckLevel, DG, "accessibility-check", IN, 0, ParseAcc, accessPicks }, - { TidyVertSpace, PP, "vertical-space", BL, no, ParseBool, boolPicks }, + { TidyVertSpace, PP, "vertical-space", IN, no, ParseAutoBool, autoBoolPicks }, /* #228 - tri option */ #if SUPPORT_ASIAN_ENCODINGS { TidyPunctWrap, PP, "punctuation-wrap", BL, no, ParseBool, boolPicks }, #endif diff --git a/src/lexer.c b/src/lexer.c index 7020006..d4fa9e1 100644 --- a/src/lexer.c +++ b/src/lexer.c @@ -983,7 +983,8 @@ static void ParseEntity( TidyDocImpl* doc, GetTokenMode mode ) if ( TY_(tmbstrcmp)(lexer->lexbuf+start, "&apos") == 0 && !cfgBool(doc, TidyXmlOut) && !lexer->isvoyager - && !cfgBool(doc, TidyXhtmlOut) ) + && !cfgBool(doc, TidyXhtmlOut) + && !(TY_(HTMLVersion)(doc) == HT50) ) /* Issue #239 - no warning if in HTML5++ mode */ TY_(ReportEntityError)( doc, APOS_UNDEFINED, lexer->lexbuf+start, 39 ); if (( mode == OtherNamespace ) && ( c == ';' )) @@ -2624,6 +2625,16 @@ static Node* GetTokenFromStream( TidyDocImpl* doc, GetTokenMode mode ) /* special check needed for CRLF sequence */ /* this doesn't apply to empty elements */ /* nor to preformatted content that needs escaping */ + /*\ + * Issue #230: Need to KEEP this user newline character in certain + * circumstances, certainly for
,