about summary refs log tree commit diff stats
path: root/gen.cpp
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2016-02-17 16:01:38 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2016-02-17 16:01:38 -0500
commit033d696ceb6f674252ee31c98db396ba4d10481f (patch)
treeb91fd4bb3bb654f01faf62d053a73e60b07e5734 /gen.cpp
parentc8e834c362ea80a781fa870338182a4c81ad3d78 (diff)
downloadrawr-ebooks-033d696ceb6f674252ee31c98db396ba4d10481f.tar.gz
rawr-ebooks-033d696ceb6f674252ee31c98db396ba4d10481f.tar.bz2
rawr-ebooks-033d696ceb6f674252ee31c98db396ba4d10481f.zip
Attemped to fix line-endings for Windows
Diffstat (limited to 'gen.cpp')
-rw-r--r--gen.cpp5
1 files changed, 5 insertions, 0 deletions
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)
37 std::string line; 37 std::string line;
38 while (getline(infile, line)) 38 while (getline(infile, line))
39 { 39 {
40 if (line.back() == '\r')
41 {
42 line.pop_back();
43 }
44
40 corpus += line + "\n "; 45 corpus += line + "\n ";
41 } 46 }
42 47