From d14c647134270048daa6380b5507f6ac886441a3 Mon Sep 17 00:00:00 2001 From: Daniel Sipka Date: Mon, 4 May 2015 10:38:42 +0200 Subject: [PATCH] support DOS newlines in templates --- src/token.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/token.cpp b/src/token.cpp index d025ac3..8a15373 100644 --- a/src/token.cpp +++ b/src/token.cpp @@ -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); } }