Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'else if' and 'else' branches are similar to each other #16

Closed
f2404 opened this issue Feb 24, 2016 · 1 comment
Closed

'else if' and 'else' branches are similar to each other #16

f2404 opened this issue Feb 24, 2016 · 1 comment

Comments

@f2404
Copy link
Contributor

f2404 commented Feb 24, 2016

rules.c:2549

                if((node = myhtml_tree_element_in_scope(tree, MyHTML_TAG_TD, MyHTML_NAMESPACE_HTML, MyHTML_TAG_CATEGORIES_SCOPE_TABLE)))
                    myhtml_tree_close_cell(tree, node);
                else if((node = myhtml_tree_element_in_scope(tree, MyHTML_TAG_TH, MyHTML_NAMESPACE_HTML, MyHTML_TAG_CATEGORIES_SCOPE_TABLE)))
                    myhtml_tree_close_cell(tree, node);
                else
                    myhtml_tree_close_cell(tree, node);

The else branch is the same as the else if one - since node will have the value obtained from the last myhtml_tree_element_in_scope() call.

lexborisov pushed a commit that referenced this issue Feb 24, 2016
@lexborisov
Copy link
Owner

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants