diff options
Diffstat (limited to 'ebooks.cpp')
-rw-r--r-- | ebooks.cpp | 5 |
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 | ||