diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2016-02-17 16:01:38 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2016-02-17 16:01:38 -0500 |
commit | 033d696ceb6f674252ee31c98db396ba4d10481f (patch) | |
tree | b91fd4bb3bb654f01faf62d053a73e60b07e5734 /gen.cpp | |
parent | c8e834c362ea80a781fa870338182a4c81ad3d78 (diff) | |
download | rawr-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.cpp | 5 |
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 | ||