Skip to content

Commit

Permalink
Fix attr mode skipping last attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
coderobe committed Apr 6, 2019
1 parent 9f02436 commit 33a666a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,7 @@ static map<const string, const function<void(myhtml_tree_node_t*)>> mode_handler
cout << mycore_string_data(&attr->value);
printf("%c", state["delim"][0]);
}

if(attr != token->attr_last) attr = attr->next;
}while(attr != token->attr_last);
}while(attr != token->attr_last && (attr = attr->next)); // move attr pointer further & loop if attr_last not hit
}}
};

Expand Down

0 comments on commit 33a666a

Please sign in to comment.