Browse Source

clarification

master
Odilitime 5 years ago
parent
commit
5d8844a08f
  1. 2
      src/parsers/markup/html/HTMLParser.cpp

2
src/parsers/markup/html/HTMLParser.cpp

@ -89,7 +89,7 @@ std::shared_ptr<Node> HTMLParser::parse(const std::string &html) const { @@ -89,7 +89,7 @@ std::shared_ptr<Node> HTMLParser::parse(const std::string &html) const {
unsigned int cursor;
int state = 0;
int prependWhiteSpace = false;
for (cursor = 0; cursor < html.length(); cursor++) { // TODO handle trying to look ahead past string
for (cursor = 0; cursor < html.length(); cursor++) { // TODO handle trying to look ahead past string length
if (state == 0) { // Outside tag
if (html[cursor] == ' ' || html[cursor] == '\t' || html[cursor] == '\r' || html[cursor] == '\n') {
prependWhiteSpace = true;

Loading…
Cancel
Save