support DOS newlines in templates

This commit is contained in:
Daniel Sipka 2015-05-04 10:38:42 +02:00
parent 8fa398252d
commit d14c647134

View file

@ -35,6 +35,6 @@ token::token(const std::string& str, std::size_t left, std::size_t right):
} else {
m_type = type::text;
m_eol = (str.size() > 0 && str[str.size() - 1] == '\n');
m_ws_only = (str.find_first_not_of(" \n\t") == std::string::npos);
m_ws_only = (str.find_first_not_of(" \r\n\t") == std::string::npos);
}
}