Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

Commit

Permalink
Merge branch 'master' of https://github.com/google/gumbo-parser
Browse files Browse the repository at this point in the history
  • Loading branch information
nostrademons committed Dec 15, 2014
2 parents 340c3b6 + 6c6b95d commit f3e9828
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/get_title.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ static const char* find_title(const GumboNode* root) {
return "<empty title>";
}
GumboNode* title_text = child->v.element.children.data[0];
assert(title_text->type == GUMBO_NODE_TEXT);
assert(title_text->type == GUMBO_NODE_TEXT || title_text->type == GUMBO_NODE_WHITESPACE);
return title_text->v.text.text;
}
}
Expand Down

0 comments on commit f3e9828

Please sign in to comment.