From 033d696ceb6f674252ee31c98db396ba4d10481f Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 17 Feb 2016 16:01:38 -0500 Subject: Attemped to fix line-endings for Windows --- gen.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gen.cpp') diff --git a/gen.cpp b/gen.cpp index 26edd21..a963740 100644 --- a/gen.cpp +++ b/gen.cpp @@ -37,6 +37,11 @@ int main(int argc, char** args) std::string line; while (getline(infile, line)) { + if (line.back() == '\r') + { + line.pop_back(); + } + corpus += line + "\n "; } -- cgit 1.4.1