support DOS newlines in templates
This commit is contained in:
parent
8fa398252d
commit
d14c647134
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue