Skip to content

Commit

Permalink
Don't eat whitespace after CM_MIXED end tags.
Browse files Browse the repository at this point in the history
Fixes #20.
  • Loading branch information
sideshowbarker committed Mar 29, 2012
1 parent 1f21625 commit 880221e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion quickref.html
Expand Up @@ -8,7 +8,7 @@
<body>
<h1 id="top">Quick Reference</h1>
<h2>HTML Tidy Configuration Options</h2>
<p>Version: <a href="https://github.com/w3c/tidy-html5/tree/f5c2739">https://github.com/w3c/tidy-html5/tree/f5c2739</a></p>
<p>Version: <a href="https://github.com/w3c/tidy-html5/tree/abc1e3f">https://github.com/w3c/tidy-html5/tree/abc1e3f</a></p>
<p>
<a class="h3" href="#MarkupHeader">HTML, XHTML, XML</a>
<br />
Expand Down
2 changes: 1 addition & 1 deletion src/parser.c
Expand Up @@ -3525,7 +3525,7 @@ void TY_(ParseBody)(TidyDocImpl* doc, Node *body, GetTokenMode mode)

if (TY_(nodeIsElement)(node))
{
if ( TY_(nodeHasCM)(node, CM_INLINE) && !TY_(nodeHasCM)(node, CM_MIXED) )
if ( TY_(nodeHasCM)(node, CM_INLINE) )
{
/* HTML4 strict doesn't allow inline content here */
/* but HTML2 does allow img elements as children of body */
Expand Down
2 changes: 1 addition & 1 deletion src/version.h
@@ -1 +1 @@
static const char TY_(release_date)[] = "https://github.com/w3c/tidy-html5/tree/abc1e3f";
static const char TY_(release_date)[] = "https://github.com/w3c/tidy-html5/tree/1f21625";

0 comments on commit 880221e

Please sign in to comment.