diff options
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 | ||