about summary refs log tree commit diff stats
path: root/ebooks.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 /ebooks.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 'ebooks.cpp')
-rw-r--r--ebooks.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/ebooks.cpp b/ebooks.cpp index fdbeeab..18a0a79 100644 --- a/ebooks.cpp +++ b/ebooks.cpp
@@ -23,6 +23,11 @@ int main(int argc, char** args)
23 std::string line; 23 std::string line;
24 while (getline(infile, line)) 24 while (getline(infile, line))
25 { 25 {
26 if (line.back() == '\r')
27 {
28 line.pop_back();
29 }
30
26 corpus += line + "\n "; 31 corpus += line + "\n ";
27 } 32 }
28 33