diff --git a/drogon_ctl/create_view.cc b/drogon_ctl/create_view.cc index 30ccab64..cbbedf2c 100644 --- a/drogon_ctl/create_view.cc +++ b/drogon_ctl/create_view.cc @@ -109,6 +109,10 @@ static void parseLine(std::ofstream &oSrcFile, { std::string::size_type pos(0); // std::cout< 0 && line[line.length() - 1] == '\r') + { + line.resize(line.length() - 1); + } if (line.length() == 0) { // std::cout<<"blank line!"<